Fixed an issue with the lexer (space before thhe dot)

This commit is contained in:
smallmodel 2024-01-28 19:40:32 +01:00
parent 8d188073b4
commit eb70b30e7a
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -205,7 +205,7 @@ varname [a-zA-Z0-9_\"]+
"//"[^\r\n]* { if( prev_yylex != TOKEN_EOL ) YYLEX( TOKEN_EOL ); }
<VARIABLES>"size" { BEGIN(INITIAL); YYLEX(TOKEN_SIZE); }
<VARIABLES>"." { YYLEX(TOKEN_PERIOD); }
<VARIABLES>[ ]*"." { YYLEX(TOKEN_PERIOD); }
<VARIABLES>\"{string}\" { BEGIN(INITIAL); TextEscapeValue(yytext + 1, strlen( yytext ) - 2 ); YYLEX(TOKEN_STRING); }
<VARIABLES>{varname} {
TextValue(yytext, strlen(yytext));