Skip to content

Backport "Check trailing blank line at EOF for OUTDENT" to 3.3 LTS #349

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

Merged
merged 2 commits into from
Apr 28, 2025

Conversation

tgodzik
Copy link

@tgodzik tgodzik commented Apr 27, 2025

Backports scala#22855 to the 3.3.7.

PR submitted by the release tooling.
[skip ci]

som-snytt and others added 2 commits April 27, 2025 23:06
Check trailing blank line at EOF for OUTDENT

If EOF is preceded by only spaces on the last line, do not outdent
because it will complain about alignment during an edit.

Preserve EOF token when probing arrow EOL

For REPL, `: x =>` at EOF sees an EOF in order to detect lambda eol.
Check trailing blank line at EOF for OUTDENT

If EOF is preceded by only spaces on the last line, do not outdent
because it will complain about alignment during an edit.

Preserve EOF token when probing arrow EOL

For REPL, `: x =>` at EOF sees an EOF in order to detect lambda eol.

[Cherry-picked bc6cf47][modified]
Base automatically changed from backport-lts-3.3-22938 to lts-3.3 April 28, 2025 08:40
@tgodzik
Copy link
Author

tgodzik commented Apr 28, 2025

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

Reference

@tgodzik tgodzik merged commit f66e5c5 into lts-3.3 Apr 28, 2025
22 checks passed
@tgodzik tgodzik deleted the backport-lts-3.3-22855 branch April 28, 2025 08:40
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