diff --git a/solidity.pegjs b/solidity.pegjs index 113372d..4b9d756 100755 --- a/solidity.pegjs +++ b/solidity.pegjs @@ -227,8 +227,7 @@ Keyword / WhileToken FutureReservedWord - = ClassToken - / ExportToken + = ExportToken / ExtendsToken Literal @@ -458,7 +457,6 @@ Zs = [\u0020\u00A0\u1680\u2000-\u200A\u202F\u205F\u3000] AnonymousToken = "anonymous" !IdentifierPart AsToken = "as" !IdentifierPart BreakToken = "break" !IdentifierPart -ClassToken = "class" !IdentifierPart ConstantToken = "constant" !IdentifierPart ContinueToken = "continue" !IdentifierPart ContractToken = "contract" !IdentifierPart diff --git a/test/doc_examples.sol b/test/doc_examples.sol index 2766c99..ebfeede 100755 --- a/test/doc_examples.sol +++ b/test/doc_examples.sol @@ -45,8 +45,9 @@ contract c { contract test { enum ActionChoices { GoLeft, GoRight, GoStraight, SitStill } - function test() + function test(uint class) { + require(class == 100); choices = ActionChoices.GoStraight; } function getChoice() returns (uint d)