|
|
@@ -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)
|