From ca94c70dba65880ddc92d8a16d1dc7c5337c5da1 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Thu, 13 Nov 2008 22:37:02 +1300 Subject: [PATCH] add support for genshi and mako --- doc/NERD_commenter.txt | 2 ++ plugin/NERD_commenter.vim | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index 42de79c..89e9136 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -809,6 +809,7 @@ if your face looked like a toaster and a t-rex put together? :( - add support for CVScommit - add support for asciidoc, git and gitrebase. Thanks to Simon Ruderich. - use # for gitcommit comments, thanks to Simon Ruderich. + - add support for mako and genshi, thanks to Keitheis. 2.2.0 - rewrote the mappings system to be more "standard". @@ -1045,6 +1046,7 @@ Elias Pipping automake Edwin Benavides actionscript, processing Thomas Rowe hostsaccess Simon Ruderich asciidoc, git, gitcommit, gitrebase +Keitheis mako, genshi ============================================================================== 9. License *NERDComLicense* diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 2ee8947..4a1511e 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -341,6 +341,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('--', '') elseif a:filetype == "geek" call s:MapDelimiters('GEEK_COMMENT:', '') + elseif a:filetype == "genshi" + call s:MapDelimitersWithAlternative('', '{#', '#}') elseif a:filetype == "gentoo-conf-d" call s:MapDelimiters('#', '') elseif a:filetype == "gentoo-env-d" @@ -489,6 +491,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('#','') elseif a:filetype == "make" call s:MapDelimiters('#','') + elseif a:filetype == "mako" + call s:MapDelimiters('##', '') elseif a:filetype == "man" call s:MapDelimiters('."', '') elseif a:filetype == "map"