You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Revert "Revert "test""
This reverts commit f54d5af.
* bees
* bees
* Re-add paren unwrapping logic lost during rebase
The code that calls unwrap_single_arg_paren was lost during the rebase
onto trunk. This restores the logic that unwraps simple parenthesized
expressions in method arguments (e.g., `foo (1)` -> `foo(1)`) while
preserving parens around keyword expressions that would cause syntax
errors (e.g., `foo (a if b)` -> `foo((a if b))`).
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Add recursive unwrapping of nested redundant parentheses
When a method call has nested parentheses like `foo ((1))` or
`foo (((1)))`, we now recursively unwrap all levels to produce
`foo(1)`. Inner parens are still preserved when they contain
keyword expressions that would cause syntax errors.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Fix clippy collapsible_if warning
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Add ParenExprClose token to prevent blank lines before closing paren
Introduces a new token type specifically for closing multiline
parenthesized expressions. This prevents the render queue from
inserting a blank line between `end` and `)` in constructs like
`foo((case x when 1 then :one end))`.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments