From 6b2cc6c41db47149da5a3da32f6da3846797f15b Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sat, 24 May 2008 16:35:03 +1200 Subject: [PATCH] add support for mason --- doc/NERD_commenter.txt | 2 ++ plugin/NERD_commenter.vim | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index dbd4768..986ded9 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -862,6 +862,7 @@ to get illegal syntax when uncommenting them. 2.1.15 - added support for pamconf, thanks to Martin Kustermann + - added support for mason 2.1.14 - added support for gitconfig, tar, nerdtree @@ -1252,3 +1253,4 @@ Christophe Benz services, gitcommit A Pontus vimperator Stromnov slice Martin Kustermann pamconf +Indriưi Einarsson mason diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 812c37b..4a615e5 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -1,5 +1,5 @@ " vim global plugin that provides easy code commenting for various file types -" Last Change: 17 May 2008 +" Last Change: 24 May 2008 " Maintainer: Martin Grenfell let s:NERD_commenter_version = 2.1.14 @@ -482,6 +482,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('') elseif a:filetype == "masm" call s:MapDelimiters(';', '') + elseif a:filetype == "mason" + call s:MapDelimiters('<% #', '%>') elseif a:filetype == "master" call s:MapDelimiters('$', '') elseif a:filetype == "matlab"