From a0003bc926fa8339be8ee50cfab0273809f73e72 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Thu, 13 Nov 2008 22:40:00 +1300 Subject: [PATCH] add support for clojure --- doc/NERD_commenter.txt | 4 ++-- plugin/NERD_commenter.vim | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index 89e9136..544f77d 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -799,7 +799,7 @@ if your face looked like a toaster and a t-rex put together? :( 8. Changelog *NERDComChangelog* 2.x.x - - add support for newlisp, thanks to Matthew Lee Hinman. + - add support for newlisp and clojure, thanks to Matthew Lee Hinman. - fix automake comments, thanks to Elias Pipping - make haml comments default to -# with / as the alternative delimiter, thanks to tpope @@ -1041,7 +1041,7 @@ Bernhard Grotz potwiki sgronblo man François txt2tags Giacomo Mariani SVNinfo -Matthew Lee Hinman newlisp +Matthew Lee Hinman newlisp, clojure Elias Pipping automake Edwin Benavides actionscript, processing Thomas Rowe hostsaccess diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 4a1511e..b2d027d 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -215,6 +215,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimitersWithAlternative('//','', '/*','*/') elseif a:filetype == "clipper" call s:MapDelimitersWithAlternative('//','', '/*','*/') + elseif a:filetype == "clojure" + call s:MapDelimiters(';', '') elseif a:filetype == "cmake" call s:MapDelimiters('#','') elseif a:filetype == "cobol"