Skip to content

Backport "Check trailing blank line at EOF for OUTDENT" to 3.7.0 #22942

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

Conversation

WojciechMazur
Copy link
Contributor

Backports #22855 to 3.7.0-RC2

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.
@WojciechMazur WojciechMazur merged commit c9bf402 into scala:release-3.7.0 Apr 9, 2025
29 checks passed
@WojciechMazur WojciechMazur deleted the backport-3.7.0/22855 branch April 9, 2025 11:37
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