From 7770913088c65d0b971dcf6e5f15b76a9f47f00b Mon Sep 17 00:00:00 2001 From: heartsentwined Date: Wed, 17 Apr 2013 10:00:03 +0800 Subject: [PATCH] add support for emblem --- plugin/NERD_commenter.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 13c7693..433435c 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -148,6 +148,7 @@ let s:delimiterMap = { \ 'eiffel': { 'left': '--' }, \ 'elf': { 'left': "'" }, \ 'elmfilt': { 'left': '#' }, + \ 'emblem': { 'left': '/' }, \ 'erlang': { 'left': '%', 'leftAlt': '%%' }, \ 'eruby': { 'left': '<%#', 'right': '%>', 'leftAlt': '' }, \ 'expect': { 'left': '#' }, @@ -2377,7 +2378,7 @@ endfunction function s:Left(...) let params = a:0 ? a:1 : {} - let delim = has_key(params, 'alt') ? b:NERDCommenterDelims['leftAlt'] : b:NERDCommenterDelims['left'] + let delim = has_key(params, 'alt') ? b:NERDCommenterDelims['leftAlt'] : b:NERDCommenterDelims['left'] if delim == '' return '' @@ -2556,7 +2557,7 @@ endfunction function s:Right(...) let params = a:0 ? a:1 : {} - let delim = has_key(params, 'alt') ? b:NERDCommenterDelims['rightAlt'] : b:NERDCommenterDelims['right'] + let delim = has_key(params, 'alt') ? b:NERDCommenterDelims['rightAlt'] : b:NERDCommenterDelims['right'] if delim == '' return ''