Open jfmengels opened 1 month ago
Ah thanks! I think that's been in there for at least 2 years before anyone noticed it :laughing: This is something https://github.com/avh4/elm-format/issues/36 would have caught, but it's sadly been too much of a mess to get implemented easily.
I can probably get to this over the summer. Also PR is welcome.
When introducing a comment in a pattern in a case expression,
elm-format
will reformat it like the following:Here, both branches are considered to be a syntax error. The
->
needs to be indented by at least one space (or move to after the()
in the first pattern). (more complete example: https://ellie-app.com/rHrcvrMP88Ha1)