Merge pull request #1005 from ethereum/modifierbody

Require ";" after "_"
This commit is contained in:
Yoichi Hirai
2016-09-05 18:28:32 +02:00
committed by GitHub
13 changed files with 69 additions and 59 deletions
+3 -2
View File
@@ -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 )?
+1 -1
View File
@@ -753,7 +753,7 @@ ASTPointer<Statement> Parser::parseStatement()
{
statement = ASTNodeFactory(*this).createNode<PlaceholderStatement>(docString);
m_scanner->next();
return statement;
break;
}
// fall-through
default: