From 95c368779bf3f209f262732299caa1bcc9e68dc8 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sun, 7 Dec 2008 12:36:59 +1300 Subject: [PATCH] add support for mp (metapost) filetype --- doc/NERD_commenter.txt | 3 ++- plugin/NERD_commenter.vim | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index dfa63f3..b57b22d 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -802,6 +802,7 @@ if your face looked like a toaster and a t-rex put together? :( - add support for dhcpd, limits, ntp, resolv, rgb, sysctl, udevconf and udevrules. Thanks to Thilo Six. - match filetypes case insensitively + - add support for mp (metapost), thanks to Andrey Skvortsov. 2.2.1 - add support for newlisp and clojure, thanks to Matthew Lee Hinman. @@ -1062,7 +1063,7 @@ Stefan Walk sieve Adam Thorsen objj Thilo Six dhcpd, limits, ntp, resolv, rgb, sysctl, udevconf, udevrules - +Andrey Skvortsov mp ============================================================================== 9. License *NERDComLicense* diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index df1f45f..0457816 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -539,6 +539,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('(*','*)') elseif a:filetype ==? "monk" call s:MapDelimiters(';', '') + elseif a:filetype ==? "mp" + call s:MapDelimiters('%', '') elseif a:filetype ==? "mplayerconf" call s:MapDelimiters('#', '') elseif a:filetype ==? "mrxvtrc"