From 59552f2e885a70371d7059b6ef22d57eb365d4a0 Mon Sep 17 00:00:00 2001 From: Zack Youngren Date: Mon, 20 Feb 2017 02:08:14 -0500 Subject: [PATCH] Add multi-line comments for Elm (#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). --- plugin/NERD_commenter.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index c3d7eb5..5bc8898 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -159,7 +159,7 @@ let s:delimiterMap = { \ 'eiffel': { 'left': '--' }, \ 'elf': { 'left': "'" }, \ 'elixir': { 'left': '#' }, - \ 'elm': { 'left': '--' }, + \ 'elm': { 'left': '--', 'leftAlt': '{--', 'rightAlt': '--}' }, \ 'elmfilt': { 'left': '#' }, \ 'ember-script': { 'left': '#' }, \ 'emblem': { 'left': '/' },