From eb70b30e7a78cab38c7a19241690c9532fef55df Mon Sep 17 00:00:00 2001 From: smallmodel <15067410+smallmodel@users.noreply.github.com> Date: Sun, 28 Jan 2024 19:40:32 +0100 Subject: [PATCH] Fixed an issue with the lexer (space before thhe dot) --- code/parser/lex_source.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/parser/lex_source.txt b/code/parser/lex_source.txt index e61c6654..bf8c3094 100644 --- a/code/parser/lex_source.txt +++ b/code/parser/lex_source.txt @@ -205,7 +205,7 @@ varname [a-zA-Z0-9_\"]+ "//"[^\r\n]* { if( prev_yylex != TOKEN_EOL ) YYLEX( TOKEN_EOL ); } "size" { BEGIN(INITIAL); YYLEX(TOKEN_SIZE); } -"." { YYLEX(TOKEN_PERIOD); } +[ ]*"." { YYLEX(TOKEN_PERIOD); } \"{string}\" { BEGIN(INITIAL); TextEscapeValue(yytext + 1, strlen( yytext ) - 2 ); YYLEX(TOKEN_STRING); } {varname} { TextValue(yytext, strlen(yytext));