From b0b8fa48853cabaf493f68403dcdd29e081113a7 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 7 Apr 2010 14:49:59 -0700 Subject: [PATCH] Eat whitespace while in the PP state --- glsl_lexer.lpp | 1 + 1 file changed, 1 insertion(+) diff --git a/glsl_lexer.lpp b/glsl_lexer.lpp index 672ff39..a25dbf9 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); -- 2.7.4