Skip to content

Conversation

kitbellew
Copy link
Collaborator

Don't allow emitting LF after Outdent, so no more extra LF tokens which might have an earlier position than the Outdent itself leading to empty trees such as Lit.Unit occasionally covering tokens between the LF and the Outdent and breaking logic. Fixes #3856.

Don't allow emitting LF after Outdent, so no more extra LF tokens which
might have an earlier position than the Outdent itself leading to empty
trees such as Lit.Unit occasionally covering tokens between the LF and
the Outdent and breaking logic.
@kitbellew kitbellew requested a review from tgodzik July 30, 2024 22:40
@kitbellew kitbellew merged commit 3d702ef into scalameta:main Jul 31, 2024
24 checks passed
@kitbellew kitbellew deleted the 3856 branch July 31, 2024 11:34
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.

Don't emit LF after Outdent, causes wrong token positions
2 participants