Skip to content

Conversation

@tgodzik
Copy link

@tgodzik tgodzik commented Apr 22, 2025

Backports scala#22611 to the 3.3.7.

PR submitted by the release tooling.
[skip ci]

Normally do not infer NEWLINE within parens,
but special case old syntax for conditionals,
so that it can observe indented syntax.
The mechanism is to inject an Indented region
when parsing a parenthesized condition which is
within an InParens region, such as an arg list.
The effect is not to advance past EOL after `(true)`.

[Cherry-picked 4ba89e9]
Base automatically changed from backport-lts-3.3-22621 to lts-3.3 April 22, 2025 17:06
@tgodzik
Copy link
Author

tgodzik commented Apr 22, 2025

No regressions detected in the community build up to backport-lts-3.3-22270.

Reference

@tgodzik tgodzik merged commit 85da96e into lts-3.3 Apr 22, 2025
22 checks passed
@tgodzik tgodzik deleted the backport-lts-3.3-22611 branch April 22, 2025 17:06
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.

3 participants