Skip to content

Commit

Permalink
Merge pull request #194 from sphinxc0re/patch-1
Browse files Browse the repository at this point in the history
Update json.pest
  • Loading branch information
dragostis authored Feb 9, 2018
2 parents 72da5b5 + c49870b commit 5a2f8cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pest_grammars/src/grammars/json.pest
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ value = { string | number | object | array | bool | null }

string = @{ "\"" ~ (escape | !("\"" | "\\") ~ any)* ~ "\"" }
escape = @{ "\\" ~ ("\"" | "\\" | "/" | "b" | "f" | "n" | "r" | "t" | unicode) }
unicode = @{ "u" ~ hex ~ hex ~ hex ~ hex }
unicode = @{ "u" ~ hex{4} }
hex = { '0'..'9' | 'a'..'f' | 'A'..'F' }

number = @{ "-"? ~ int ~ ("." ~ '0'..'9'+ ~ exp? | exp)? }
Expand Down

0 comments on commit 5a2f8cb

Please sign in to comment.