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.
This commit is contained in:
committed by
Ian Romanick
parent
fa455fc2a5
commit
e6ae7afc0c
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user