projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62f62ca
)
Eat whitespace while in the PP state
author
Ian Romanick
<ian.d.romanick@intel.com>
Wed, 7 Apr 2010 21:49:59 +0000
(14:49 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Wed, 7 Apr 2010 23:49:25 +0000
(16:49 -0700)
glsl_lexer.lpp
patch
|
blob
|
history
diff --git
a/glsl_lexer.lpp
b/glsl_lexer.lpp
index 672ff39dc61a7b295d73bdf629e946d04513ec6e..a25dbf9e2fe7b0211f717ba34d81a33ca68dd89e 100644
(file)
--- 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);