From 0a30bbe20c50fad7e50318b65a7d8dac06584e77 Mon Sep 17 00:00:00 2001 From: Peter Host Date: Mon, 24 Oct 2011 17:24:19 +0200 Subject: [PATCH 1/2] add support for scss leftalt comment - scss uses '//' as an alternative (scss only) for comments, which are stripped from the scss file at css generation time --- 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 6cb7dbe..49841e4 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -314,7 +314,7 @@ let s:delimiterMap = { \ 'scheme': { 'left': ';', 'leftAlt': '#|', 'rightAlt': '|#' }, \ 'scilab': { 'left': '//' }, \ 'scsh': { 'left': ';' }, - \ 'scss': { 'left': '/*','right': '*/' }, + \ 'scss': { 'left': '/*', 'right': '*/', 'leftAlt': '//' }, \ 'sed': { 'left': '#' }, \ 'sgmldecl': { 'left': '--', 'right': '--' }, \ 'sgmllnx': { 'left': '' }, From 4a91777538587535fb106602ccbc1c3a0e27d054 Mon Sep 17 00:00:00 2001 From: Peter Host Date: Sun, 4 Dec 2011 22:33:18 +0100 Subject: [PATCH 2/2] add comments for jade templating engine --- plugin/NERD_commenter.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 49841e4..64458f5 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -198,6 +198,7 @@ let s:delimiterMap = { \ 'ishd': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'iss': { 'left': ';' }, \ 'ist': { 'left': '%' }, + \ 'jade': { 'left': '//-', 'leftAlt': '//' }, \ 'java': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'javacc': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' }, \ 'javascript': { 'left': '//', 'leftAlt': '/*', 'rightAlt': '*/' },