X-Git-Url: http://nitlanguage.org diff --git a/contrib/nitcc/examples/json.sablecc b/contrib/nitcc/examples/json.sablecc index d1e9c6b..0de8914 100644 --- a/contrib/nitcc/examples/json.sablecc +++ b/contrib/nitcc/examples/json.sablecc @@ -9,7 +9,18 @@ frac = '.' d+; exp = e d+; e = ('e'|'E') ('+'|'-')?; -string = '"' (Any-'\\'-'"' | '\\'Any)* '"'; +hexdig = '0'..'9' | 'a'..'z' | 'A'..'Z'; +string = '"' (Any - '\\' - '"' | '\\' ( + '\\' | + '"' | + '/' | + 'b' | + 'f' | + 'n' | + 'r' | + 't' | + 'u' hexdig hexdig hexdig hexdig + ))* '"'; blank = (' '|'\n'|'\t')+;