mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
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
This commit is contained in:
parent
77f4424589
commit
970260bf0f
@ -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) \
|
||||
\
|
||||
|
Loading…
Reference in New Issue
Block a user