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

formatting with 0.9.4 #229

Merged
merged 1 commit into from
May 24, 2021
Merged

formatting with 0.9.4 #229

merged 1 commit into from
May 24, 2021

Conversation

belav
Copy link
Owner

@belav belav commented May 24, 2021

No description provided.

@belav belav merged commit c6edad5 into master May 24, 2021
@belav belav deleted the formatting-with-0.9.4 branch May 24, 2021 18:37
@@ -1,5 +1,5 @@
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../../CSharpier.Build.props"/>
<Import Project="../../CSharpier.Build.props" />
Copy link
Collaborator

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 } })
Copy link
Collaborator

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?

Copy link
Owner Author

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
Copy link
Collaborator

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! 😛

Copy link
Owner Author

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

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.

2 participants