Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Router: use SpaceOrNoSplit instead of custom rule #4462

Merged
merged 3 commits into from
Oct 20, 2024

Conversation

kitbellew
Copy link
Collaborator

Add SpaceOrNoSplit, handle State etc.

This new modification would serve as a space unless we encounter, on the same line, a terminating token, in which case it will become a NoSplit.

This will allow us to re-implement conversion of braces to parens for one-line apply without having to worry about possibly non-idempotent additional formatting rules.

This new modification would serve as a space unless we encounter, on the
same line, a terminating token, in which case it will become a NoSplit.

This will allow us to re-implement conversion of braces to parens for
one-line apply without having to worry about possibly non-idempotent
additional formatting rules.
@kitbellew kitbellew merged commit 89da7a6 into scalameta:main Oct 20, 2024
21 checks passed
@kitbellew kitbellew deleted the 4133_279 branch October 20, 2024 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant