Disallow a + before numbers (makes parsing easier, agrees with JSON)

This commit is contained in:
Stephen Dolan committed 2012-09-03 15:32:50 +01:00
1 parent cf004c2b3a
commit d8fad1ed9b
1 file changed
+1 -1
+1 -1
View File
@@ -16,7 +16,7 @@
"."|"="|";"|"["|"]"|","|":"|"("|")"|"{"|"}"|"|"|"+"|"\$" { return yytext[0];}
\"(\\.|[^\\"])*\" |
[+-]?[0-9.]+([eE][+-]?[0-9]+)? {
-?[0-9.]+([eE][+-]?[0-9]+)? {
yylval->literal = jv_parse_sized(yytext, yyleng); return LITERAL;
}