summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-06-21 15:11:01 -0700
committerIan Romanick <[email protected]>2010-06-23 14:14:57 -0700
commite6ae7afc0cf41922fdbdd45b7a433cc450424c87 (patch)
tree715b4983eefccc0d02ff1acfaa58a601e72912c7
parentfa455fc2a529d26a0e03b9ff837a554c511cee71 (diff)
glcpp: Recognize plain "//" as a comment.
Found in glsl-orangebook-ch06-bump.(frag|vert). This was resulting in the comments getting passed through to the main compiler's lexer.
-rw-r--r--glcpp/glcpp-lex.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/glcpp/glcpp-lex.l b/glcpp/glcpp-lex.l
index 0dea9950015..fabe7566030 100644
--- 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;