diff options
author | Greg Brown <gmb60@cam.ac.uk> | 2021-02-03 14:22:22 +0000 |
---|---|---|
committer | Greg Brown <gmb60@cam.ac.uk> | 2021-02-03 14:30:16 +0000 |
commit | 1edc32317cbbcda22a3bb5a15034e5d758573f97 (patch) | |
tree | fc5f442bdd2a29103a1d49b2b903206ae38798a8 /autochomp/src/lib.rs | |
parent | 17a34e8f368ebe57235e9f3fc1fdf827e5ee59a1 (diff) |
Create benchmark for JSON.
Diffstat (limited to 'autochomp/src/lib.rs')
-rw-r--r-- | autochomp/src/lib.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/autochomp/src/lib.rs b/autochomp/src/lib.rs index 545b28e..79518f7 100644 --- a/autochomp/src/lib.rs +++ b/autochomp/src/lib.rs @@ -49,12 +49,12 @@ chomp_macro::nibble! { "x" | "y" | "z" | "{" | "|" | "}" | "~") : Literal | "\\" . ( ("\"" | "'" | "n" | "r" | "t" | "\\" | "0") : Ascii | - "x" . oct_digit . hex_digit : Oct | - "u{" .hex_digit - .opt(hex_digit - .opt(hex_digit - .opt(hex_digit - .opt(hex_digit . opt(hex_digit))))) . "}" : Unicode + "x" . oct_digit . hex_digit : Oct | + "u{" .hex_digit + .opt(hex_digit + .opt(hex_digit + .opt(hex_digit + .opt(hex_digit . opt(hex_digit))))) . "}" : Unicode ) : Escape ; let ws = plus(Pattern_Whitespace); |