aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorYoichi Hirai <i@yoichihirai.com>2016-12-01 22:37:45 +0800
committerYoichi Hirai <i@yoichihirai.com>2016-12-02 18:52:11 +0800
commit43b56a61aa734b1abae7dba589b82266cba0fd74 (patch)
tree787f660f0c957e330b42ab90b6ddae9569551b0a /libsolidity
parent50bcc60e6ee492cfbdb06bcf0ae82b918fddc0ac (diff)
downloaddexon-solidity-43b56a61aa734b1abae7dba589b82266cba0fd74.tar.gz
dexon-solidity-43b56a61aa734b1abae7dba589b82266cba0fd74.tar.zst
dexon-solidity-43b56a61aa734b1abae7dba589b82266cba0fd74.zip
parsing: `default` and `null` are reserved keywords
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/parsing/Token.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/parsing/Token.h b/libsolidity/parsing/Token.h
index 3ce0f424..c6d050bb 100644
--- a/libsolidity/parsing/Token.h
+++ b/libsolidity/parsing/Token.h
@@ -147,7 +147,6 @@ namespace solidity
K(Const, "constant", 0) \
K(Continue, "continue", 0) \
K(Contract, "contract", 0) \
- K(Default, "default", 0) \
K(Do, "do", 0) \
K(Else, "else", 0) \
K(Enum, "enum", 0) \
@@ -208,7 +207,6 @@ namespace solidity
T(TypesEnd, NULL, 0) /* used as type enum end marker */ \
\
/* Literals */ \
- K(NullLiteral, "null", 0) \
K(TrueLiteral, "true", 0) \
K(FalseLiteral, "false", 0) \
T(Number, NULL, 0) \
@@ -223,12 +221,14 @@ namespace solidity
K(After, "after", 0) \
K(Case, "case", 0) \
K(Catch, "catch", 0) \
+ K(Default, "default", 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(NullLiteral, "null", 0) \
K(Of, "of", 0) \
K(Pure, "pure", 0) \
K(Relocatable, "relocatable", 0) \