aboutsummaryrefslogtreecommitdiffstats
path: root/Parser.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-10-29 19:59:06 +0800
committerChristian <c@ethdev.com>2014-10-29 20:00:22 +0800
commit2939b180ba3e9fd247676b19b0b849676ac0d682 (patch)
treee536d333e3e7ca380066482390276108e7558731 /Parser.cpp
parent95c973cc12e3bf6e2bf1094440af46180e8b29d1 (diff)
downloaddexon-solidity-2939b180ba3e9fd247676b19b0b849676ac0d682.tar
dexon-solidity-2939b180ba3e9fd247676b19b0b849676ac0d682.tar.gz
dexon-solidity-2939b180ba3e9fd247676b19b0b849676ac0d682.tar.bz2
dexon-solidity-2939b180ba3e9fd247676b19b0b849676ac0d682.tar.lz
dexon-solidity-2939b180ba3e9fd247676b19b0b849676ac0d682.tar.xz
dexon-solidity-2939b180ba3e9fd247676b19b0b849676ac0d682.tar.zst
dexon-solidity-2939b180ba3e9fd247676b19b0b849676ac0d682.zip
Parser fix: Consume break and continue.
Diffstat (limited to 'Parser.cpp')
-rw-r--r--Parser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Parser.cpp b/Parser.cpp
index 1ea413ee..44f0a54a 100644
--- a/Parser.cpp
+++ b/Parser.cpp
@@ -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:
{