projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa455fc
)
glcpp: Recognize plain "//" as a comment.
author
Kenneth Graunke
<kenneth@whitecape.org>
Mon, 21 Jun 2010 22:11:01 +0000
(15:11 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Wed, 23 Jun 2010 21:14:57 +0000
(14:14 -0700)
Found in glsl-orangebook-ch06-bump.(frag|vert). This was resulting in
the comments getting passed through to the main compiler's lexer.
glcpp/glcpp-lex.l
patch
|
blob
|
history
diff --git
a/glcpp/glcpp-lex.l
b/glcpp/glcpp-lex.l
index 0dea99500157125a5b82a057966aa210ecbf2466..fabe756603059d0f39b06cc2991de546cbc75334 100644
(file)
--- a/
glcpp/glcpp-lex.l
+++ b/
glcpp/glcpp-lex.l
@@
-60,7
+60,7
@@
HEXADECIMAL_INTEGER 0[xX][0-9a-fA-F]+[uU]?
%%
/* Single-line comments */
-"//"[^\n]
+
\n {
+"//"[^\n]
*
\n {
yylineno++;
yycolumn = 0;
return NEWLINE;