| ... | ... | @@ -443,7 +443,10 @@ fn renderExpression(r: *Render, node: Ast.Node.Index, space: Space) Error!void { |
| 443 | 443 | if (r.fixups.insert_parentheses.contains(node)) { |
| 444 | 444 | try renderExpression(r, rhs, .none); |
| 445 | 445 | try ais.writeByte(')'); |
| 446 | | try renderOnlySpace(r, space); |
| 446 | const right_most_token = tree.lastToken(rhs); |
| 447 | const lexeme = tokenSliceForRender(tree, right_most_token); |
| 448 | // If our space is .none, then the above code functions is normal and below shouldn't run |
| 449 | if (space != .none) try renderSpace(r, right_most_token, lexeme.len, space); |
| 447 | 450 | } else { |
| 448 | 451 | try renderExpression(r, rhs, space); // fallback |
| 449 | 452 | } |