Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

switch-branch with multi-match branch is formatted weirdly #7962

Open
@tx46

Description

switch 0 {
 // Something something
 | 0
 // Another something
 | 1 =>
 let foo = 123
 doSomethingInteresting(foo)
}

formats to:

switch 0 {
// Something something
| 0
| // Another something
1 =>
 let foo = 123
 doSomethingInteresting(foo)
}

which likely doesn't match the intention here. in general i dislike that the formatter is throwing my comments around and won't let me place them as i want to.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /