diff --git a/code/parser/lex_source.txt b/code/parser/lex_source.txt index bf8c3094..0cca5359 100644 --- a/code/parser/lex_source.txt +++ b/code/parser/lex_source.txt @@ -312,7 +312,7 @@ varname [a-zA-Z0-9_\"]+ [\r\n]+ { if (prev_yylex != TOKEN_EOL) YYLEX(TOKEN_EOL); } [ \t] { ; } -[0-9]+ { +[0-9^`]+ { char* p = nullptr; yylval.s.val.intValue = std::strtol(yytext, &p, 10); YYLEX(TOKEN_INTEGER);