Browse Source

Eat whitespace while in the PP state

tags/mesa-7.9-rc1
Ian Romanick 15 years ago
parent
commit
b0b8fa4885
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      glsl_lexer.lpp

+ 1
- 0
glsl_lexer.lpp View File

^[ \t]*#[ \t]*line { BEGIN PP; return LINE; } ^[ \t]*#[ \t]*line { BEGIN PP; return LINE; }
^[ \t]*#[ \t]*pragma { BEGIN PP; return PRAGMA; } ^[ \t]*#[ \t]*pragma { BEGIN PP; return PRAGMA; }
<PP>\/\/[^\n]* { } <PP>\/\/[^\n]* { }
<PP>[ \t\r]* { }
<PP>: return COLON; <PP>: return COLON;
<PP>[_a-zA-Z][_a-zA-Z0-9]* { <PP>[_a-zA-Z][_a-zA-Z0-9]* {
yylval->identifier = strdup(yytext); yylval->identifier = strdup(yytext);

Loading…
Cancel
Save