Eat whitespace while in the PP state
This commit is contained in:
parent
62f62ca3b3
commit
b0b8fa4885
|
@ -62,6 +62,7 @@
|
|||
^[ \t]*#[ \t]*line { BEGIN PP; return LINE; }
|
||||
^[ \t]*#[ \t]*pragma { BEGIN PP; return PRAGMA; }
|
||||
<PP>\/\/[^\n]* { }
|
||||
<PP>[ \t\r]* { }
|
||||
<PP>: return COLON;
|
||||
<PP>[_a-zA-Z][_a-zA-Z0-9]* {
|
||||
yylval->identifier = strdup(yytext);
|
||||
|
|
Loading…
Reference in New Issue