Skip to content

[fix] Properly indent case/in statements - #887

Merged
reese merged 2 commits into
trunkfrom
reese-case-in
May 12, 2026
Merged

[fix] Properly indent case/in statements#887
reese merged 2 commits into
trunkfrom
reese-case-in

Conversation

@reese

@reese reese commented May 12, 2026

Copy link
Copy Markdown
Collaborator

Closes #885
Closes #886

We format in nodes as with_start_of_line(false, ... since they generally handle their own newlines as part of formatting the branch bodies. However, we still need to properly indent them each time manually (since we're skipping the indentation bits in format_node) so they start at the right indentation level.

@reese
reese merged commit 3fd2134 into trunk May 12, 2026
8 checks passed
@reese
reese deleted the reese-case-in branch May 12, 2026 21: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.

End-of-line comments after in keyword moved to wrong line, not idempotent Missing indentation for case ... in statements

2 participants