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 672ff39dc61a7b295d73bdf629e946d04513ec6e..a25dbf9e2fe7b0211f717ba34d81a33ca68dd89e 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);