From: Ian Romanick Date: Wed, 7 Apr 2010 20:43:52 +0000 (-0700) Subject: Partially fix comment handling in preprocessor directives. X-Git-Tag: 062012170305~10660^2~625^2~408 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=62f62ca3b3a206bb52de79b8fc7890ac8c62c7fc;p=profile%2Fivi%2Fmesa.git Partially fix comment handling in preprocessor directives. Multi-line /* */ comments are still broken. I think this will wait to be fixed until we have a real preprocessor. --- diff --git a/glsl_lexer.lpp b/glsl_lexer.lpp index 8f3f121..672ff39 100644 --- a/glsl_lexer.lpp +++ b/glsl_lexer.lpp @@ -61,6 +61,7 @@ ^[ \t]*#[ \t]*extension { BEGIN PP; return EXTENSION; } ^[ \t]*#[ \t]*line { BEGIN PP; return LINE; } ^[ \t]*#[ \t]*pragma { BEGIN PP; return PRAGMA; } +\/\/[^\n]* { } : return COLON; [_a-zA-Z][_a-zA-Z0-9]* { yylval->identifier = strdup(yytext);