halohalospecial / atom-elmjutsu

A bag of tricks for developing with Elm. (Atom package)
https://atom.io/packages/elmjutsu
MIT License
192 stars 24 forks source link

end of line comments get moved to the next line #25

Closed mojo2go closed 7 years ago

mojo2go commented 7 years ago

I tend to use end-of-line comments. Elmjutsu does not. It moves them to the next line for me. Can I tweak that behaviour? How or where?

What I want

    [ { name = "Mina", isComplete = False, id = 1 }
    , { name = "Joe", isComplete = True, id = 2 }   -- the test record
    ]

What Elmjutsu gives me

    [ { name = "Mina", isComplete = False, id = 1 }
    , { name = "Joe", isComplete = True, id = 2 }
      -- the test record
    ]
halohalospecial commented 7 years ago

Hi @mojo2go, you should submit this issue to https://github.com/avh4/elm-format instead :)

OvermindDL1 commented 7 years ago

Entirely an elm-format issue as elm-format is what does that. Also, you should use elm inline comment syntax instead of elm line comment syntax for in-expression comments like that, that is why elm-format moved it to a new line.