diff options
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); |