Eat whitespace while in the PP state
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 7 Apr 2010 21:49:59 +0000 (14:49 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 7 Apr 2010 23:49:25 +0000 (16:49 -0700)
glsl_lexer.lpp

index 672ff39..a25dbf9 100644 (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);