From 1edc32317cbbcda22a3bb5a15034e5d758573f97 Mon Sep 17 00:00:00 2001 From: Greg Brown Date: Wed, 3 Feb 2021 14:22:22 +0000 Subject: Create benchmark for JSON. --- autochomp/src/lib.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'autochomp/src/lib.rs') 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); -- cgit v1.2.3