Commit 39cde146 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Multiplication divided by negated multiplication now also works correctly.

parent a9eb446f
...@@ -248,7 +248,7 @@ def generate_line(root): ...@@ -248,7 +248,7 @@ def generate_line(root):
if rpred < op_pred: if rpred < op_pred:
rparens = not unary_right \ 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: elif rpred == op_pred and len(right) > 1:
if right.title() == op: if right.title() == op:
rparens = not is_right_assoc(op) rparens = not is_right_assoc(op)
......
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