Skip to content

Commit 59552f2

Browse files
zackalerque
authored andcommitted
Add multi-line comments for Elm (preservim#283)
Technically the minimum necessary syntax for block comments requires only a single hyphen (`-}`, `{-`), but I have found that using a double hyphen plays a bit more nicely with the elmcast/elm-vim auto-formatting. Further, uncommenting when using the single dashes leaves an extra level of indentation (again, when using elmcast/elm-vim).
1 parent c5f8cbf commit 59552f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/NERD_commenter.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ let s:delimiterMap = {
159159
\ 'eiffel': { 'left': '--' },
160160
\ 'elf': { 'left': "'" },
161161
\ 'elixir': { 'left': '#' },
162-
\ 'elm': { 'left': '--' },
162+
\ 'elm': { 'left': '--', 'leftAlt': '{--', 'rightAlt': '--}' },
163163
\ 'elmfilt': { 'left': '#' },
164164
\ 'ember-script': { 'left': '#' },
165165
\ 'emblem': { 'left': '/' },

0 commit comments

Comments
 (0)