Skip to content

Conversation

@tgodzik
Copy link

@tgodzik tgodzik commented Apr 21, 2025

Backports scala#22435 to the 3.3.6.

PR submitted by the release tooling.
[skip ci]

Fixes scala#22332 

The reference does not mention `<eof>`. `<outdent>` insertion does not
require a particular next token, though some next tokens affect it (that
is, leading infix or tokens that close an indentation region). It does
require a "first token on the next line", for which we may take `<eof>`
as the lack of a token.

Of course, ordinary error messages say `eof`.

The same text with an opening brace is unchanged:
```
5 |
  | ^
  | '}' expected, but eof found
```
[Cherry-picked 81e057a]
Base automatically changed from backport-lts-3.3-22362 to lts-3.3 April 22, 2025 07:27
@tgodzik
Copy link
Author

tgodzik commented Apr 22, 2025

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

Reference

@tgodzik tgodzik merged commit 53b23b2 into lts-3.3 Apr 22, 2025
22 checks passed
@tgodzik tgodzik deleted the backport-lts-3.3-22435 branch April 22, 2025 07:27
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