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

FormatOps: outindent after fewer braces in infix #3740

Merged
merged 2 commits into from
Dec 30, 2023

Conversation

kitbellew
Copy link
Collaborator

When a fewer braces call is used before an infix operator, that operator may not be indented as it will otherwise be interpreted as part of the fewer-braces argument.

This fix leaves a few cases (notably, many for newlines.source=unfold) still broken, but that requires a change to the parser which will be released in the new version of scalameta.

Helps with #3720.

When a fewer braces call is used before an infix operator, that operator
may not be indented as it will otherwise be interpreted as part of the
fewer-braces argument.

This fix leaves a few cases (notably, many for newlines.source=unfold)
still broken, but that requires a change to the parser which will be
released in the new version of scalameta.
@kitbellew kitbellew merged commit 11dd3a8 into scalameta:master Dec 30, 2023
9 checks passed
@kitbellew kitbellew deleted the 3720_1 branch December 30, 2023 17:50
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.

2 participants