mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fixed an issue with the lexer (space before thhe dot)
This commit is contained in:
parent
8d188073b4
commit
eb70b30e7a
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ varname [a-zA-Z0-9_\"]+
|
||||||
"//"[^\r\n]* { if( prev_yylex != TOKEN_EOL ) YYLEX( TOKEN_EOL ); }
|
"//"[^\r\n]* { if( prev_yylex != TOKEN_EOL ) YYLEX( TOKEN_EOL ); }
|
||||||
|
|
||||||
<VARIABLES>"size" { BEGIN(INITIAL); YYLEX(TOKEN_SIZE); }
|
<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>\"{string}\" { BEGIN(INITIAL); TextEscapeValue(yytext + 1, strlen( yytext ) - 2 ); YYLEX(TOKEN_STRING); }
|
||||||
<VARIABLES>{varname} {
|
<VARIABLES>{varname} {
|
||||||
TextValue(yytext, strlen(yytext));
|
TextValue(yytext, strlen(yytext));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue