aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2016-08-16 22:28:45 +0800
committerchriseth <chris@ethereum.org>2016-08-16 22:28:45 +0800
commit970260bf0f8b9cdfd46c6956c14e267788ffdc0f (patch)
tree9f4676acfe10a0875e94e6db001f3e3acac003d1
parent77f442458934d2f0d9ffde34784bb58bd177b3ef (diff)
downloaddexon-solidity-970260bf0f8b9cdfd46c6956c14e267788ffdc0f.tar.gz
dexon-solidity-970260bf0f8b9cdfd46c6956c14e267788ffdc0f.tar.zst
dexon-solidity-970260bf0f8b9cdfd46c6956c14e267788ffdc0f.zip
Reserved keywords update (#833)
* Reserve abstract, interface and payable keywords * Keywords as and using aren't reserved anymore - they're used * Reserve the static keyword
-rw-r--r--libsolidity/parsing/Token.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libsolidity/parsing/Token.h b/libsolidity/parsing/Token.h
index 5ac7aedd..f4de74c7 100644
--- a/libsolidity/parsing/Token.h
+++ b/libsolidity/parsing/Token.h
@@ -141,6 +141,7 @@ namespace solidity
\
/* Keywords */ \
K(Anonymous, "anonymous", 0) \
+ K(As, "as", 0) \
K(Assembly, "assembly", 0) \
K(Break, "break", 0) \
K(Const, "constant", 0) \
@@ -171,6 +172,7 @@ namespace solidity
K(Storage, "storage", 0) \
K(Struct, "struct", 0) \
K(Throw, "throw", 0) \
+ K(Using, "using", 0) \
K(Var, "var", 0) \
K(While, "while", 0) \
\
@@ -214,22 +216,24 @@ namespace solidity
T(Identifier, NULL, 0) \
\
/* Keywords reserved for future use. */ \
+ K(Abstract, "abstract", 0) \
K(After, "after", 0) \
- K(As, "as", 0) \
K(Case, "case", 0) \
K(Catch, "catch", 0) \
K(Final, "final", 0) \
K(In, "in", 0) \
K(Inline, "inline", 0) \
+ K(Interface, "interface", 0) \
K(Let, "let", 0) \
K(Match, "match", 0) \
K(Of, "of", 0) \
+ K(Payable, "payable", 0) \
K(Relocatable, "relocatable", 0) \
+ K(Static, "static", 0) \
K(Switch, "switch", 0) \
K(Try, "try", 0) \
K(Type, "type", 0) \
K(TypeOf, "typeof", 0) \
- K(Using, "using", 0) \
/* Illegal token - not able to scan. */ \
T(Illegal, "ILLEGAL", 0) \
\