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