From 23aa8889908e65485ff195bf4663ce4f90b8ceb2 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Fri, 6 Mar 2009 16:14:13 +1300 Subject: [PATCH] add support for pdf --- 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 93ad046..cb4e834 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -807,7 +807,7 @@ if your face looked like a toaster and a t-rex put together? :( - add support for javacc, thanks to Matt Tolton. - make <%# %> the default delims for eruby, thanks to tpope. - add support for javascript.jquery, thanks to Ivan Devat. - - add support for cucumber, fix sass delims, thanks to tpope + - add support for cucumber and pdf, fix sass delims, thanks to tpope 2.2.1 - add support for newlisp and clojure, thanks to Matthew Lee Hinman. @@ -1072,7 +1072,7 @@ Andrey Skvortsov mp Simon Hengel htmlcheetah Matt Tolton javacc Ivan Devat javascript.jquery -tpope cucumber +tpope cucumber,pdf ============================================================================== 9. License *NERDComLicense* diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 782c3de..bfa6511 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -612,6 +612,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('#', '') elseif a:filetype ==? "pccts" call s:MapDelimitersWithAlternative('//','', '/*','*/') + elseif a:filetype ==? "pdf" + call s:MapDelimiters('%', '') elseif a:filetype ==? "perl" call s:MapDelimiters('#', '') elseif a:filetype ==? "pfmain"