-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
formatting with 0.9.4 #229
Conversation
@@ -1,5 +1,5 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<Import Project="../../CSharpier.Build.props"/> | |||
<Import Project="../../CSharpier.Build.props" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the right level of indent?
@@ -62,7 +62,7 @@ public static Doc PrintWithSuffix(SyntaxToken syntaxToken, Doc suffixDoc) | |||
&& syntaxToken.Text.StartsWith("@")) | |||
|| (syntaxToken.Kind() == SyntaxKind.InterpolatedStringTextToken | |||
&& syntaxToken.Parent!.Parent | |||
is InterpolatedStringExpressionSyntax { StringStartToken: { RawKind: (int)SyntaxKind.InterpolatedVerbatimStringStartToken } } ) | |||
is InterpolatedStringExpressionSyntax { StringStartToken: { RawKind: (int)SyntaxKind.InterpolatedVerbatimStringStartToken } }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a bug tracking breaking these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is the same problem #214
@@ -156,12 +158,14 @@ public DropdownAttribute(bool ignoreIfNotPresent) | |||
[Test] | |||
public void MissingSemiColon() | |||
{ | |||
var left = @"public enum Enum | |||
var left = | |||
@"public enum Enum |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, the more I think about it, the more I realize: there is no good way to format multiline strings! 😛
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The recent PR I might actually make it easier to keep the @"public enum Enum
on the same line, although it may depend on implementing ConditionalGroup
No description provided.