File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ int xx_get_token(xx_scanner_state *s, xx_scanner_token *token) {
3131 re2c:indent:top = 2;
3232 re2c:yyfill:enable = 0;
3333
34- INTEGER = ([\-] ?[0-9]+)|([\-] ?[0][x][0-9A-Fa-f]+);
34+ INTEGER = ("-" ?[0-9]+)|("-" ?[0][x][0-9A-Fa-f]+);
3535 INTEGER {
3636 token->opcode = XX_T_INTEGER;
3737 token->value = estrndup(start, YYCURSOR - start);
@@ -41,7 +41,7 @@ int xx_get_token(xx_scanner_state *s, xx_scanner_token *token) {
4141 return 0;
4242 }
4343
44- DOUBLE = ([\-] ?[0-9]+[\.] [0-9]+);
44+ DOUBLE = ("-" ?[0-9]+"." [0-9]+);
4545 DOUBLE {
4646 token->opcode = XX_T_DOUBLE;
4747 token->value = estrndup(start, YYCURSOR - start);
@@ -584,7 +584,7 @@ int xx_get_token(xx_scanner_state *s, xx_scanner_token *token) {
584584 }
585585
586586 /* We have to remove this and define constants in compiler */
587- IDENTIFIER = [\\_\ $]?[_a-zA-Z\\][a-zA-Z0-9_\\]*;
587+ IDENTIFIER = [\\_$]?[_a-zA-Z\\][a-zA-Z0-9_\\]*;
588588 IDENTIFIER {
589589
590590 if (start[0 ] == ' $' ) {
You can’t perform that action at this time.
0 commit comments