summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-06-21 15:12:34 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-06-23 14:14:57 -0700
commitd07bb7b83a664717009c40bd940b3025f4bb96a7 (patch)
treed8f9d08b015c94f04adf7b3c9d888417c33cf8b1
parente6ae7afc0cf41922fdbdd45b7a433cc450424c87 (diff)
Remove comment support from the main lexer.
Now handled by the preprocessor.
-rw-r--r--glsl_lexer.lpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/glsl_lexer.lpp b/glsl_lexer.lpp
index 9a3037a..c15c99c 100644
--- a/glsl_lexer.lpp
+++ b/glsl_lexer.lpp
@@ -41,9 +41,8 @@
%option never-interactive
%option prefix="_mesa_glsl_"
%option extra-type="struct _mesa_glsl_parse_state *"
-%option stack
-%x PP COMMENT
+%x PP
DEC_INT [1-9][0-9]*
HEX_INT 0[xX][0-9a-fA-F]+
@@ -54,14 +53,6 @@ SPCP [ \t]+
HASH ^{SPC}#{SPC}
%%
-"/*" { yy_push_state(COMMENT, yyscanner); }
-<COMMENT>[^*\n]*
-<COMMENT>[^*\n]*\n { yylineno++; yycolumn = 0; }
-<COMMENT>"*"+[^*/\n]*
-<COMMENT>"*"+[^*/\n]*\n { yylineno++; yycolumn = 0; }
-<COMMENT>"*"+"/" { yy_pop_state(yyscanner); }
-
-\/\/.*\n { yylineno++; yycolumn = 0; }
[ \r\t]+ ;
/* Preprocessor tokens. */