mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Parser fix: Consume break and continue.
This commit is contained in:
parent
95c973cc12
commit
2939b180ba
@ -266,9 +266,11 @@ ASTPointer<Statement> Parser::parseStatement()
|
||||
// starting from here, all statements must be terminated by a semicolon
|
||||
case Token::CONTINUE:
|
||||
statement = ASTNodeFactory(*this).createNode<Continue>();
|
||||
m_scanner->next();
|
||||
break;
|
||||
case Token::BREAK:
|
||||
statement = ASTNodeFactory(*this).createNode<Break>();
|
||||
m_scanner->next();
|
||||
break;
|
||||
case Token::RETURN:
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user