Commit b3639395 authored by Victor Yacovlev's avatar Victor Yacovlev

Improved "No operator before (" error diagnostic message

parent da690d13
......@@ -3288,6 +3288,11 @@ AST::Expression * SyntaxAnalizerPrivate::parseExpression(
return 0;
}
subexpression << operand;
if (oper && oper->type==LxOperLeftBr) {
delete operand;
oper->error = _("No operator before (");
return 0;
}
if (oper)
subexpression << oper;
if (subexpression.size()>1 &&
......
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