mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
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.
This commit is contained in:
parent
77cce649c9
commit
62f62ca3b3
1 changed files with 1 additions and 0 deletions
|
|
@ -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; }
|
||||
<PP>\/\/[^\n]* { }
|
||||
<PP>: return COLON;
|
||||
<PP>[_a-zA-Z][_a-zA-Z0-9]* {
|
||||
yylval->identifier = strdup(yytext);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue