Commit ca91ec1c authored by Christoph Feck's avatar Christoph Feck

Fix parsing runs of unary '+' and '-'

parent c391c552
......@@ -895,10 +895,12 @@ void Parser::heir3()
void Parser::heir4()
{
if (match("-")) {
heir5();
heir4();
if (*m_error != ParseSuccess)
return;
addToken(NEG);
} else if (match("+")) {
heir4();
} else {
heir5();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment