Disallow a + before numbers (makes parsing easier, agrees with JSON)
This commit is contained in:
1 parent
cf004c2b3a
commit
d8fad1ed9b
1 file changed
+1
-1
@@ -16,7 +16,7 @@
|
|||||||
"."|"="|";"|"["|"]"|","|":"|"("|")"|"{"|"}"|"|"|"+"|"\$" { return yytext[0];}
|
"."|"="|";"|"["|"]"|","|":"|"("|")"|"{"|"}"|"|"|"+"|"\$" { return yytext[0];}
|
||||||
|
|
||||||
\"(\\.|[^\\"])*\" |
|
\"(\\.|[^\\"])*\" |
|
||||||
[+-]?[0-9.]+([eE][+-]?[0-9]+)? {
|
-?[0-9.]+([eE][+-]?[0-9]+)? {
|
||||||
yylval->literal = jv_parse_sized(yytext, yyleng); return LITERAL;
|
yylval->literal = jv_parse_sized(yytext, yyleng); return LITERAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user