projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77cce64
)
Partially fix comment handling in preprocessor directives.
author
Ian Romanick
<ian.d.romanick@intel.com>
Wed, 7 Apr 2010 20:43:52 +0000
(13:43 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Wed, 7 Apr 2010 23:49:25 +0000
(16:49 -0700)
Multi-line /* */ comments are still broken. I think this will wait to
be fixed until we have a real preprocessor.
glsl_lexer.lpp
patch
|
blob
|
history
diff --git
a/glsl_lexer.lpp
b/glsl_lexer.lpp
index 8f3f1211d5dd59d4456d4de2e13602d341e73265..672ff39dc61a7b295d73bdf629e946d04513ec6e 100644
(file)
--- a/
glsl_lexer.lpp
+++ b/
glsl_lexer.lpp
@@
-61,6
+61,7
@@
^[ \t]*#[ \t]*extension { BEGIN PP; return EXTENSION; }
^[ \t]*#[ \t]*line { BEGIN PP; return LINE; }
^[ \t]*#[ \t]*pragma { BEGIN PP; return PRAGMA; }
+<PP>\/\/[^\n]* { }
<PP>: return COLON;
<PP>[_a-zA-Z][_a-zA-Z0-9]* {
yylval->identifier = strdup(yytext);