diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-04-07 14:49:59 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-04-07 16:49:25 -0700 |
commit | b0b8fa48853cabaf493f68403dcdd29e081113a7 (patch) | |
tree | e47d19e52426c07bc477124cffc28563288bdd6b /glsl_lexer.lpp | |
parent | 62f62ca3b3a206bb52de79b8fc7890ac8c62c7fc (diff) |
Eat whitespace while in the PP state
Diffstat (limited to 'glsl_lexer.lpp')
-rw-r--r-- | glsl_lexer.lpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/glsl_lexer.lpp b/glsl_lexer.lpp index 672ff39dc6..a25dbf9e2f 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; } <PP>\/\/[^\n]* { } +<PP>[ \t\r]* { } <PP>: return COLON; <PP>[_a-zA-Z][_a-zA-Z0-9]* { yylval->identifier = strdup(yytext); |