From 6304c65434ab3a764eeb5fb29d59b49b2257e19d Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Mon, 31 Mar 2008 18:11:06 +1300 Subject: [PATCH] added support for SVNdiff, gitAnnotate and gitdiff --- doc/NERD_commenter.txt | 6 +++++- plugin/NERD_commenter.vim | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index 8e22e16..dfa0efe 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -864,6 +864,8 @@ to get illegal syntax when uncommenting them. - added support for patran and dakota, thx to Jacobo Diaz for the email - added support for gentoo-env-d, gentoo-init-d, gentoo-make-conf, grub, modconf and sudoers filetypes, thx to Li Jin for the patch. + - added support for SVNdiff, gitAnnotate, gitdiff. Thx to nicothakis for + posting the issue 2.1.11 - fixed a bug with the selection option and visual commenting (again). @@ -1214,8 +1216,10 @@ Pipp lhaskell Renald Buter scala Vladimir Lomov asymptote Marco mrxvtrc, aap -nicothakis SVNAnnotate, CVSAnnotate, SVKAnnotate +nicothakis SVNAnnotate, CVSAnnotate, SVKAnnotate, + SVNdiff, gitAnnotate, gitdiff Chen Xing Wikipedia Jacobo Diaz dakota, patran Li Jin gentoo-env-d, gentoo-init-d, gentoo-make-conf, grub, modconf, sudoers + diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index fbe4e27..736a506 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -356,6 +356,10 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('#', '') elseif a:filetype == 'gentoo-package-use' call s:MapDelimiters('#', '') + elseif a:filetype == 'gitAnnotate' + call s:MapDelimiters('', '') + elseif a:filetype == 'gitdiff' + call s:MapDelimiters('', '') elseif a:filetype == "gnuplot" call s:MapDelimiters('#','') elseif a:filetype == "groovy" @@ -736,6 +740,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('','') elseif a:filetype == "SVNcommitlog" call s:MapDelimiters('','') + elseif a:filetype == "SVNdiff" + call s:MapDelimiters('','') elseif a:filetype == "systemverilog" call s:MapDelimitersWithAlternative('//','', '/*','*/') elseif a:filetype == "tads"