mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #1005 from ethereum/modifierbody
Require ";" after "_"
This commit is contained in:
@@ -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 )?
|
||||
|
||||
@@ -753,7 +753,7 @@ ASTPointer<Statement> Parser::parseStatement()
|
||||
{
|
||||
statement = ASTNodeFactory(*this).createNode<PlaceholderStatement>(docString);
|
||||
m_scanner->next();
|
||||
return statement;
|
||||
break;
|
||||
}
|
||||
// fall-through
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user