From d8fad1ed9bbb53ca2c5c2c101664b235a6b55c0c Mon Sep 17 00:00:00 2001 From: Stephen Dolan Date: Mon, 3 Sep 2012 15:32:50 +0100 Subject: [PATCH] Disallow a + before numbers (makes parsing easier, agrees with JSON) --- c/lexer.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/lexer.l b/c/lexer.l index 550ad85..4acb026 100644 --- a/c/lexer.l +++ b/c/lexer.l @@ -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; } -- 2.40.0