lexer: Allow whitespace before comments
This commit is contained in:
parent
9b1699f4c4
commit
c2a42dd503
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
%%
|
%%
|
||||||
<BIND_A2WS_COND>[^\n]+ { BEGIN(INITIAL); yylval.string = strdup(yytext); return STR; }
|
<BIND_A2WS_COND>[^\n]+ { BEGIN(INITIAL); yylval.string = strdup(yytext); return STR; }
|
||||||
^#[^\n]* { return TOKCOMMENT; }
|
^[ \t]*#[^\n]* { return TOKCOMMENT; }
|
||||||
<COLOR_COND>[0-9a-fA-F]+ { yylval.string = strdup(yytext); return HEX; }
|
<COLOR_COND>[0-9a-fA-F]+ { yylval.string = strdup(yytext); return HEX; }
|
||||||
[0-9]+ { yylval.number = atoi(yytext); return NUMBER; }
|
[0-9]+ { yylval.number = atoi(yytext); return NUMBER; }
|
||||||
bind { BEGIN(BIND_COND); return TOKBIND; }
|
bind { BEGIN(BIND_COND); return TOKBIND; }
|
||||||
|
|
Loading…
Reference in New Issue