Eat whitespace while in the PP state

This commit is contained in:
Ian Romanick 2010-04-07 14:49:59 -07:00
parent 62f62ca3b3
commit b0b8fa4885
1 changed files with 1 additions and 0 deletions

View File

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