Skip to content

Commit ff3dd1b

Browse files
committed
modify the flex file so if there is no space before ; at the end of the
line, this character would not be considered part of TOKEN_ESCAPEID
1 parent 1693be2 commit ff3dd1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/libvqm/vqm_parser.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ assign return TOKEN_ASSIGN;
6161
yylval.value = atoi(yytext);
6262
return TOKEN_INTCONSTANT;
6363
}
64-
\\[^ ^\t]+ {
64+
\\[^ ^\t^;]+ {
6565
yylval.string = (char *)malloc(yyleng);
6666
strcpy(yylval.string, yytext+1);
6767
return TOKEN_ESCAPEDID;

0 commit comments

Comments
 (0)