allow float constants to have "e" suffix

This commit is contained in:
josh committed 2018-04-11 21:18:21 -04:00
1 parent 14bb4f4705
commit 75bda2b8ac
1 file changed
+1 -1
+1 -1
View File
@@ -117,7 +117,7 @@ sizeof return TOK_SIZEOF;
'\\f' (void)'\f'; return TOK_CHAR_CONST;
[0-9]+([uU][lL]?[lL]?)? return TOK_INT_CONST;
0[xX][0-9a-fA-F]+([uU][lL]?[lL]?)? return TOK_INT_CONST;
[0-9]*\.[0-9]*[fF]? return TOK_FLOAT_CONST;
[0-9]*\.[0-9]*[fF]?([eE][0-9]+)? return TOK_FLOAT_CONST;
\" {
if (build_string != NULL)