From 11114745bd9673c32adf2a7509859742dc430c2c Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Fri, 6 Mar 2009 14:59:51 +1300 Subject: [PATCH] add support for cucumber --- doc/NERD_commenter.txt | 2 ++ plugin/NERD_commenter.vim | 2 ++ 2 files changed, 4 insertions(+) diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index 2a645df..6dd78e2 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -807,6 +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, thanks to tpope 2.2.1 - add support for newlisp and clojure, thanks to Matthew Lee Hinman. @@ -1071,6 +1072,7 @@ Andrey Skvortsov mp Simon Hengel htmlcheetah Matt Tolton javacc Ivan Devat javascript.jquery +tpope cucumber ============================================================================== 9. License *NERDComLicense* diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 2526fcf..8665b4a 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -236,6 +236,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('/*','*/') elseif a:filetype ==? "cterm" call s:MapDelimiters('*', '') + elseif a:filetype ==? "cucumber" + call s:MapDelimiters('#','') elseif a:filetype ==? "cupl" call s:MapDelimiters('/*','*/') elseif a:filetype ==? "csv"