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:
Kenneth Graunke 2010-06-21 15:11:01 -07:00 committed by Ian Romanick
parent fa455fc2a5
commit e6ae7afc0c

View file

@ -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;