Lexer fixes for integer

This fixes map loading issues (fixes #258)
This commit is contained in:
smallmodel 2024-02-22 21:36:31 +01:00
parent 1a5cac2c6a
commit cc721a3db6
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -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);