fix remove_extra_brackets undoing work of post-processing step

This commit is contained in:
2026-10-14 20:44:20 +03:00
parent 1b4693029f
commit 89335fbdc6
2 changed files with 21 additions and 0 deletions
+6
View File
@@ -709,6 +709,12 @@ static void remove_extra_brackets(std::vector<Expression::Token>& tv)
continue;
}
// check specifically if the opening undoes applied fixes
if (Expression::Token::is_negative(get_prior_mop(tv, get_mop_location(tv, r.start))))
{
continue;
}
open_brackets(tv, r);
}
}