Skip to content
Snippets Groups Projects
Commit 39cde146 authored by Taddeüs Kroes's avatar Taddeüs Kroes
Browse files

Multiplication divided by negated multiplication now also works correctly.

parent a9eb446f
No related branches found
No related tags found
No related merge requests found
......@@ -248,7 +248,7 @@ def generate_line(root):
if rpred < op_pred:
rparens = not unary_right \
or (pred(right[0]) < op_pred and len(right[0]) > 1)
or (op == '/' and right[0].title() in '*/')
elif rpred == op_pred and len(right) > 1:
if right.title() == op:
rparens = not is_right_assoc(op)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment