Fix parser/lexer to more carefully check the "C" part of 'extern "C"' declarations.

This commit is contained in:
Matt Pharr
2011-10-18 16:44:14 -04:00
parent 290032f4f5
commit 9b8ea3d500
2 changed files with 4 additions and 8 deletions

1
lex.ll
View File

@@ -126,6 +126,7 @@ unsigned { return TOKEN_UNSIGNED; }
varying { return TOKEN_VARYING; }
void { return TOKEN_VOID; }
while { return TOKEN_WHILE; }
\"C\" { return TOKEN_STRING_C_LITERAL; }
L?\"(\\.|[^\\"])*\" { lStringConst(yylval, yylloc); return TOKEN_STRING_LITERAL; }