From 496b7ea1d207e84c1dde195ca8fdbe59d36db633 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 6 Sep 2016 01:40:04 +0100 Subject: [PATCH 1/2] Reserve view and pure as keywords --- libsolidity/parsing/Token.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libsolidity/parsing/Token.h b/libsolidity/parsing/Token.h index cc85b6108..2bf7419e8 100644 --- a/libsolidity/parsing/Token.h +++ b/libsolidity/parsing/Token.h @@ -230,12 +230,14 @@ namespace solidity K(Let, "let", 0) \ K(Match, "match", 0) \ K(Of, "of", 0) \ + K(Pure, "pure", 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(View, "view", 0) \ /* Illegal token - not able to scan. */ \ T(Illegal, "ILLEGAL", 0) \ \ From 834bb1a1102d9bfab4327af6522978b9f6c200f0 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 6 Sep 2016 11:21:35 +0100 Subject: [PATCH 2/2] Update changelog with reserved keywords --- Changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index 27f88cd2d..388f52cd5 100644 --- a/Changelog.md +++ b/Changelog.md @@ -25,7 +25,7 @@ Breaking Changes: * Moved (and reworked) standard library contracts from inside the compiler to github.com/ethereum/solidity/std (``import "std";`` or ``import owned;`` do not work anymore). * Confusing and undocumented keyword "after" was removed. - * New reserved words: hex, payable, abstract, static, interface + * New reserved words: abstract, hex, interface, payable, pure, static, view Features: