Update reserved keywords.

TRAC #20514 ISSUE=317 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@1031 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent b7ad052f
#define MAJOR_VERSION 1 #define MAJOR_VERSION 1
#define MINOR_VERSION 0 #define MINOR_VERSION 0
#define BUILD_VERSION 0 #define BUILD_VERSION 0
#define BUILD_REVISION 1030 #define BUILD_REVISION 1031
#define STRINGIFY(x) #x #define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x) #define MACRO_STRINGIFY(x) STRINGIFY(x)
......
// //
// Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved. // Copyright (c) 2002-2012 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
...@@ -463,10 +463,8 @@ bool TParseContext::reservedErrorCheck(int line, const TString& identifier) ...@@ -463,10 +463,8 @@ bool TParseContext::reservedErrorCheck(int line, const TString& identifier)
} }
} }
if (identifier.find("__") != TString::npos) { if (identifier.find("__") != TString::npos) {
//error(line, "Two consecutive underscores are reserved for future use.", identifier.c_str(), "", ""); error(line, "identifiers containing two consecutive underscores (__) are reserved as possible future keywords", identifier.c_str(), "", "");
//return true; return true;
infoSink.info.message(EPrefixWarning, "Two consecutive underscores are reserved for future use.", line);
return false;
} }
} }
......
/* /*
// //
// Copyright (c) 2002-2010 The ANGLE Project Authors. All rights reserved. // Copyright (c) 2002-2012 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
...@@ -15,7 +15,7 @@ WHICH GENERATES THE GLSL ES LEXER (glslang_lex.cpp). ...@@ -15,7 +15,7 @@ WHICH GENERATES THE GLSL ES LEXER (glslang_lex.cpp).
%top{ %top{
// //
// Copyright (c) 2010 The ANGLE Project Authors. All rights reserved. // Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
// //
...@@ -159,6 +159,7 @@ O [0-7] ...@@ -159,6 +159,7 @@ O [0-7]
"extern" { return reserved_word(yyscanner); } "extern" { return reserved_word(yyscanner); }
"external" { return reserved_word(yyscanner); } "external" { return reserved_word(yyscanner); }
"interface" { return reserved_word(yyscanner); } "interface" { return reserved_word(yyscanner); }
"flat" { return reserved_word(yyscanner); }
"long" { return reserved_word(yyscanner); } "long" { return reserved_word(yyscanner); }
"short" { return reserved_word(yyscanner); } "short" { return reserved_word(yyscanner); }
...@@ -166,6 +167,7 @@ O [0-7] ...@@ -166,6 +167,7 @@ O [0-7]
"half" { return reserved_word(yyscanner); } "half" { return reserved_word(yyscanner); }
"fixed" { return reserved_word(yyscanner); } "fixed" { return reserved_word(yyscanner); }
"unsigned" { return reserved_word(yyscanner); } "unsigned" { return reserved_word(yyscanner); }
"superp" { return reserved_word(yyscanner); }
"input" { return reserved_word(yyscanner); } "input" { return reserved_word(yyscanner); }
"output" { return reserved_word(yyscanner); } "output" { return reserved_word(yyscanner); }
...@@ -173,12 +175,21 @@ O [0-7] ...@@ -173,12 +175,21 @@ O [0-7]
"hvec2" { return reserved_word(yyscanner); } "hvec2" { return reserved_word(yyscanner); }
"hvec3" { return reserved_word(yyscanner); } "hvec3" { return reserved_word(yyscanner); }
"hvec4" { return reserved_word(yyscanner); } "hvec4" { return reserved_word(yyscanner); }
"fvec2" { return reserved_word(yyscanner); }
"fvec3" { return reserved_word(yyscanner); }
"fvec4" { return reserved_word(yyscanner); }
"dvec2" { return reserved_word(yyscanner); } "dvec2" { return reserved_word(yyscanner); }
"dvec3" { return reserved_word(yyscanner); } "dvec3" { return reserved_word(yyscanner); }
"dvec4" { return reserved_word(yyscanner); } "dvec4" { return reserved_word(yyscanner); }
"fvec2" { return reserved_word(yyscanner); }
"fvec3" { return reserved_word(yyscanner); }
"fvec4" { return reserved_word(yyscanner); }
"sampler1D" { return reserved_word(yyscanner); }
"sampler3D" { return reserved_word(yyscanner); }
"sampler1DShadow" { return reserved_word(yyscanner); }
"sampler2DShadow" { return reserved_word(yyscanner); }
"sampler3DRect" { return reserved_word(yyscanner); }
"sampler2DRectShadow" { return reserved_word(yyscanner); }
"sizeof" { return reserved_word(yyscanner); } "sizeof" { return reserved_word(yyscanner); }
"cast" { return reserved_word(yyscanner); } "cast" { return reserved_word(yyscanner); }
......
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