Skip to content

Commit

Permalink
fix #23
Browse files Browse the repository at this point in the history
  • Loading branch information
duaraghav8 committed Dec 26, 2017
1 parent c39745d commit aa50ec9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions solidity.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ Keyword
/ WhileToken

FutureReservedWord
= ClassToken
/ ExportToken
= ExportToken
/ ExtendsToken

Literal
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion test/doc_examples.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aa50ec9

Please sign in to comment.