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

Leading/trailing trivia Formatting #22

Closed
belav opened this issue Mar 1, 2021 · 1 comment
Closed

Leading/trailing trivia Formatting #22

belav opened this issue Mar 1, 2021 · 1 comment

Comments

@belav
Copy link
Owner

belav commented Mar 1, 2021

We lose new lines in places we may want them, and insert them in places we probably shouldn't.
We also gain extra new lines at times.

We lose the new line after foo

#define foo

namespace Namespace

We add an extra new line before #pragma each time we format - #21

namespace Namespace
{
#pragma
    public class ClassName { }
}

There are some forms of comments we want inline, something like this breaks I think.

this.DoSomething(1, /* no break */ 2);
@belav
Copy link
Owner Author

belav commented Mar 28, 2021

#32 is related, and maybe can be handled in this issue.

belav added a commit that referenced this issue Mar 29, 2021
belav added a commit that referenced this issue Apr 3, 2021
GH-22 figuring out a (kind of ugly) solution to get new lines working in trivia
@belav belav closed this as completed Apr 4, 2021
@belav belav removed this from the Beta milestone Jul 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant