diff options
| author | Kenneth Graunke <kenneth@whitecape.org> | 2010-06-21 15:11:01 -0700 | 
|---|---|---|
| committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-06-23 14:14:57 -0700 | 
| commit | e6ae7afc0cf41922fdbdd45b7a433cc450424c87 (patch) | |
| tree | 715b4983eefccc0d02ff1acfaa58a601e72912c7 | |
| parent | fa455fc2a529d26a0e03b9ff837a554c511cee71 (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.l | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/glcpp/glcpp-lex.l b/glcpp/glcpp-lex.l index 0dea995001..fabe756603 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; | 
