Fixed struct name lexing

TRAC #12110 Unlike built-in types, structs can be redefined (in a different scope). Signed-off-by: Shannon Woods Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@309 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 838bceae
......@@ -114,7 +114,7 @@ Remove it when we can exclusively use the newer version.
"sampler2D" { pyylval->lex.line = yylineno; parseContext.lexAfterType = true; return SAMPLER2D; }
"samplerCube" { pyylval->lex.line = yylineno; parseContext.lexAfterType = true; return SAMPLERCUBE; }
"struct" { pyylval->lex.line = yylineno; return(STRUCT); }
"struct" { pyylval->lex.line = yylineno; parseContext.lexAfterType = true; return(STRUCT); }
"asm" { PaReservedWord(); return 0; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment