From: Ian Romanick Date: Wed, 7 Apr 2010 21:49:59 +0000 (-0700) Subject: Eat whitespace while in the PP state X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0b8fa48853cabaf493f68403dcdd29e081113a7;p=mesa.git Eat whitespace while in the PP state --- diff --git a/glsl_lexer.lpp b/glsl_lexer.lpp index 672ff39dc61..a25dbf9e2fe 100644 --- a/glsl_lexer.lpp +++ b/glsl_lexer.lpp @@ -62,6 +62,7 @@ ^[ \t]*#[ \t]*line { BEGIN PP; return LINE; } ^[ \t]*#[ \t]*pragma { BEGIN PP; return PRAGMA; } \/\/[^\n]* { } +[ \t\r]* { } : return COLON; [_a-zA-Z][_a-zA-Z0-9]* { yylval->identifier = strdup(yytext);