From 2939b180ba3e9fd247676b19b0b849676ac0d682 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 29 Oct 2014 12:59:06 +0100 Subject: [PATCH] Parser fix: Consume break and continue. --- Parser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Parser.cpp b/Parser.cpp index 1ea413ee9..44f0a54ad 100644 --- a/Parser.cpp +++ b/Parser.cpp @@ -266,9 +266,11 @@ ASTPointer Parser::parseStatement() // starting from here, all statements must be terminated by a semicolon case Token::CONTINUE: statement = ASTNodeFactory(*this).createNode(); + m_scanner->next(); break; case Token::BREAK: statement = ASTNodeFactory(*this).createNode(); + m_scanner->next(); break; case Token::RETURN: {