avh4 / elm-format

elm-format formats Elm source code according to a standard set of rules based on the official Elm Style Guide
BSD 3-Clause "New" or "Revised" License
1.31k stars 146 forks source link

Required parens around comments are removed #817

Open avh4 opened 1 year ago

avh4 commented 1 year ago

In elm-format 0.8.5 (MacOS)

When formatted,

f =
    g  (--comment
         x)

the parens are removed, but should be retained in this case, as the comment is attached to x, and not to the space between g and x.

avh4 commented 1 year ago

Ah, duplicate of https://github.com/avh4/elm-format/issues/762