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

Better formatting of multiline comments when indentation is changing #582

Merged
merged 9 commits into from
Feb 5, 2022

Conversation

belav
Copy link
Owner

@belav belav commented Jan 30, 2022

closes #580

@belav belav changed the title Multi line comments when indent changes Better formatting of multiline comments when indentation is changing Jan 30, 2022
@belav belav marked this pull request as ready for review January 30, 2022 23:36
@@ -135,26 +135,38 @@ public static Doc PrintLeadingTriviaWithNewLines(SyntaxTriviaList leadingTrivia)
{
printNewLines = true;
}
if (IsSingleLineComment(kind))

void AddLeadingCommend(CommentType commentType)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you meant AddLeadingComment

@belav belav force-pushed the multi-line-comments branch from 0954a03 to b73b659 Compare February 5, 2022 14:44
@belav belav merged commit 648f7db into master Feb 5, 2022
@belav belav deleted the multi-line-comments branch February 5, 2022 14:46
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.

Multiline comments are not properly indented.
2 participants