diff options
author | Stephen Dolan <mu@netsoc.tcd.ie> | 2012-09-03 15:32:50 +0100 |
---|---|---|
committer | Stephen Dolan <mu@netsoc.tcd.ie> | 2012-09-03 15:32:50 +0100 |
commit | d8fad1ed9bbb53ca2c5c2c101664b235a6b55c0c (patch) | |
tree | 709304ad4c8cb8c7b2a1afcefb3135c2494b5eeb /c/lexer.l | |
parent | cf004c2b3a24ec72cbd86a354b4bf39700c7ff43 (diff) |
Disallow a + before numbers (makes parsing easier, agrees with JSON)
Diffstat (limited to 'c/lexer.l')
-rw-r--r-- | c/lexer.l | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |