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
diff --git a/src/compiler/ParseHelper.cpp b/src/compiler/ParseHelper.cpp
index 0a739336..7d54803 100644
--- a/src/compiler/ParseHelper.cpp
+++ b/src/compiler/ParseHelper.cpp
@@ -1,5 +1,5 @@
//
-// 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
// found in the LICENSE file.
//
@@ -463,10 +463,8 @@
}
}
if (identifier.find("__") != TString::npos) {
- //error(line, "Two consecutive underscores are reserved for future use.", identifier.c_str(), "", "");
- //return true;
- infoSink.info.message(EPrefixWarning, "Two consecutive underscores are reserved for future use.", line);
- return false;
+ error(line, "identifiers containing two consecutive underscores (__) are reserved as possible future keywords", identifier.c_str(), "", "");
+ return true;
}
}