Skip to content
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

Preserve line-comment positions #388

Merged
merged 2 commits into from
Aug 14, 2022
Merged

Preserve line-comment positions #388

merged 2 commits into from
Aug 14, 2022

Conversation

nene
Copy link
Collaborator

@nene nene commented Aug 11, 2022

Bring back precedingWhitespace field to preserve positions of line comments.

  • When comment was originally at the end of a line, keep it on the line end
  • When comment was originally on a separate line, keep it on separate line

Fixes #365

- When it was originally at the end of a line, keep it on the line end
- When it was originally on a separate line, keep it on separate line
@nene nene merged commit caadc6a into master Aug 14, 2022
@nene nene deleted the line-comment-formatting branch August 14, 2022 19:13
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.

[FORMATTING] Comments move their lines after formatting
2 participants