Skip to content

Tweak comment placement for semicolons - #544

Merged
DavisVaughan merged 1 commit into
mainfrom
fix/semicolon-comments
Oct 22, 2026
Merged

DavisVaughan merged 1 commit into
mainfrom
fix/semicolon-comments

Conversation

@DavisVaughan

Copy link
Copy Markdown
Collaborator

Follow up to the last PR. When we have both a preceding and following node and the comment is EndOfLine, we need to check if the line consists of all semicolons. If it does, we really want to treat this like an OwnLine comment instead, since the semicolons will just disappear.

This is important for relative ordering, and also seems to just make more sense!

Follow up to the last PR. When we have both a `preceding` and `following` node and the comment is `EndOfLine`, we need to check if the line consists of all semicolons. If it does, we really want to treat this like an `OwnLine` comment instead, since the semicolons will just disappear.

This is important for relative ordering, and also seems to just make more sense!
@DavisVaughan
DavisVaughan merged commit 6280a67 into main Oct 22, 2026
6 checks passed
@DavisVaughan
DavisVaughan deleted the fix/semicolon-comments branch October 22, 2026 12:11
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.

1 participant