mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
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:
parent
fa455fc2a5
commit
e6ae7afc0c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue