avh4/elm-format

Backslash prepended to underscores in comments

Open

#587 opened on 2018年12月24日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)Haskell (1,329 stars) (148 forks)batch import
help wanted

説明

I have a type alias definition in the following form:

{-| represents a diary, as returned by the endpoint api/get_diary.
 -}

type alias Diary =
     { notes : String
     , pages : Int     
     }

Elm-format converts the comment to the following:

{-| represents a diary, as returned by the endpoint api/get\_diary.
 -}

I understand the usefulness of such rule in the code - but it should be ignored in comments.

コントリビューターガイド

Backslash prepended to underscores in comments · avh4/elm-format#587 | Good First Issue