commit | e6ae7afc0cf41922fdbdd45b7a433cc450424c87 | [log] [tgz] |
---|---|---|
author | Kenneth Graunke <kenneth@whitecape.org> | Mon Jun 21 15:11:01 2010 -0700 |
committer | Ian Romanick <ian.d.romanick@intel.com> | Wed Jun 23 14:14:57 2010 -0700 |
tree | 715b4983eefccc0d02ff1acfaa58a601e72912c7 | |
parent | fa455fc2a529d26a0e03b9ff837a554c511cee71 [diff] [blame] |
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.
diff --git a/glcpp/glcpp-lex.l b/glcpp/glcpp-lex.l index 0dea995..fabe756 100644 --- a/glcpp/glcpp-lex.l +++ b/glcpp/glcpp-lex.l
@@ -60,7 +60,7 @@ %% /* Single-line comments */ -"//"[^\n]+\n { +"//"[^\n]*\n { yylineno++; yycolumn = 0; return NEWLINE;