Add ability to treat keywords as identifiers in versions that had not yet reserved the keyword.
Used this for precision keywords and double matrix keywords. Also added a few missing reserved words. Also removed redundant "syntax error" when there is a parse error. git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20423 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
59ddbafb62
commit
1c809955ba
4 changed files with 143 additions and 73 deletions
|
|
@ -73,6 +73,7 @@ Jutta Degener, 1995
|
|||
#endif
|
||||
|
||||
%}
|
||||
|
||||
%union {
|
||||
struct {
|
||||
TSourceLoc line;
|
||||
|
|
@ -1664,6 +1665,7 @@ storage_qualifier
|
|||
|
||||
parseContext.checkDeprecated($1.line, ENoProfile, 140, "attribute");
|
||||
parseContext.requireNotRemoved($1.line, ECoreProfile, 420, "attribute");
|
||||
parseContext.requireNotRemoved($1.line, EEsProfile, 300, "attribute");
|
||||
|
||||
if (parseContext.globalErrorCheck($1.line, parseContext.symbolTable.atGlobalLevel(), "attribute"))
|
||||
parseContext.recover();
|
||||
|
|
@ -1674,6 +1676,7 @@ storage_qualifier
|
|||
| VARYING {
|
||||
parseContext.checkDeprecated($1.line, ENoProfile, 140, "varying");
|
||||
parseContext.requireNotRemoved($1.line, ECoreProfile, 420, "varying");
|
||||
parseContext.requireNotRemoved($1.line, EEsProfile, 300, "varying");
|
||||
|
||||
if (parseContext.globalErrorCheck($1.line, parseContext.symbolTable.atGlobalLevel(), "varying"))
|
||||
parseContext.recover();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue