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

Always remove block comment closers when converting into inline comment #5306

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ytmimi
Copy link
Contributor

@ytmimi ytmimi commented Apr 11, 2022

Fixes #4971

Previously we would only remove the last block comment closer */ from a set of block comments. This failed to remove block comment closers from adjacent block comments and nested block comments when converting them into inline comments with normalize_comments = true.

Now we'll always remove block comment closers when converting into inline comments with normalize_comments = true.

Fixes 4971

Previously we would only remove the last block comment closer `*/` from
a set of block comments. This failed to remove block comment closers
from adjacent block comments and nested block comments when converting
them into inline comments with `normalize_comments = true`.

Now we'll always remove block comment closers when converting into inline
comments with `normalize_comments = true`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

normalize_comments = true causes malformed comments
1 participant