mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
Eat whitespace while in the PP state
This commit is contained in:
parent
62f62ca3b3
commit
b0b8fa4885
1 changed files with 1 additions and 0 deletions
|
|
@ -62,6 +62,7 @@
|
|||
^[ \t]*#[ \t]*line { BEGIN PP; return LINE; }
|
||||
^[ \t]*#[ \t]*pragma { BEGIN PP; return PRAGMA; }
|
||||
<PP>\/\/[^\n]* { }
|
||||
<PP>[ \t\r]* { }
|
||||
<PP>: return COLON;
|
||||
<PP>[_a-zA-Z][_a-zA-Z0-9]* {
|
||||
yylval->identifier = strdup(yytext);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue