diff options
author | Yoichi Hirai <yhirai@pira.jp> | 2016-09-06 00:28:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-06 00:28:32 +0800 |
commit | e2b787cdd0717bf074cc03634d580f7713568792 (patch) | |
tree | e743ce24ef9f7eb1df0ada36b79cde685384b8e3 /libsolidity/grammar.txt | |
parent | be6a5f44d7ac4d63eb249988eb8e467fb15f5af4 (diff) | |
parent | 3b2174f7a82fec7ed8ef2e55ec00996fac32c948 (diff) | |
download | dexon-solidity-e2b787cdd0717bf074cc03634d580f7713568792.tar.gz dexon-solidity-e2b787cdd0717bf074cc03634d580f7713568792.tar.zst dexon-solidity-e2b787cdd0717bf074cc03634d580f7713568792.zip |
Merge pull request #1005 from ethereum/modifierbody
Require ";" after "_"
Diffstat (limited to 'libsolidity/grammar.txt')
-rw-r--r-- | libsolidity/grammar.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libsolidity/grammar.txt b/libsolidity/grammar.txt index 0230729a..86df3db0 100644 --- a/libsolidity/grammar.txt +++ b/libsolidity/grammar.txt @@ -41,8 +41,9 @@ ArrayTypeName = TypeName StorageLocation? '[' Expression? ']' StorageLocation = 'memory' | 'storage' Block = '{' Statement* '}' -Statement = IfStatement | WhileStatement | ForStatement | Block | PlaceholderStatement | - ( Continue | Break | Return | Throw | SimpleStatement | ExpressionStatement ) ';' +Statement = IfStatement | WhileStatement | ForStatement | Block | + ( PlaceholderStatement | Continue | Break | Return | + Throw | SimpleStatement | ExpressionStatement ) ';' ExpressionStatement = Expression | VariableDefinition IfStatement = 'if' '(' Expression ')' Statement ( 'else' Statement )? |