projects
/
profile
/
ivi
/
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
672ff39
..
a25dbf9
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);