From: Kenneth Graunke Date: Mon, 21 Jun 2010 22:12:34 +0000 (-0700) Subject: Remove comment support from the main lexer. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d07bb7b83a664717009c40bd940b3025f4bb96a7;p=mesa.git Remove comment support from the main lexer. Now handled by the preprocessor. --- diff --git a/glsl_lexer.lpp b/glsl_lexer.lpp index 9a3037a8ff5..c15c99c4b06 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); } -[^*\n]* -[^*\n]*\n { yylineno++; yycolumn = 0; } -"*"+[^*/\n]* -"*"+[^*/\n]*\n { yylineno++; yycolumn = 0; } -"*"+"/" { yy_pop_state(yyscanner); } - -\/\/.*\n { yylineno++; yycolumn = 0; } [ \r\t]+ ; /* Preprocessor tokens. */