Complete test coverage for errors related to parser error recovery

This commit is contained in:
a3d4
2020-08-20 16:14:39 +02:00
parent 4a720a6511
commit 0ee4a85a84
4 changed files with 17 additions and 9 deletions
+1 -1
View File
@@ -1106,7 +1106,7 @@ ASTPointer<Block> Parser::parseBlock(ASTPointer<ASTString> const& _docString)
BOOST_THROW_EXCEPTION(FatalError()); /* Don't try to recover here. */
m_inParserRecovery = true;
}
if (m_parserErrorRecovery)
if (m_inParserRecovery)
expectTokenOrConsumeUntil(Token::RBrace, "Block");
else
expectToken(Token::RBrace);