From caefbe56fdc0dccf8a447dd1f4d72b8913aebb46 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sun, 14 Dec 2008 18:39:55 +1300 Subject: [PATCH] add support for javacc --- 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 acb542a..95e232e 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -804,6 +804,7 @@ if your face looked like a toaster and a t-rex put together? :( - match filetypes case insensitively - add support for mp (metapost), thanks to Andrey Skvortsov. - add support for htmlcheetah, thanks to Simon Hengel. + - add support for javacc, thanks to Matt Tolton. 2.2.1 - add support for newlisp and clojure, thanks to Matthew Lee Hinman. @@ -1066,6 +1067,7 @@ Thilo Six dhcpd, limits, ntp, resolv, rgb, sysctl, udevconf, udevrules Andrey Skvortsov mp Simon Hengel htmlcheetah +Matt Tolton javacc ============================================================================== 9. License *NERDComLicense* diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 92fdc54..3a9e5d5 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -426,6 +426,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('/*','*/') elseif a:filetype ==? "java" call s:MapDelimitersWithAlternative('//','', '/*','*/') + elseif a:filetype ==? "javacc" + call s:MapDelimitersWithAlternative('//','', '/*','*/') elseif a:filetype ==? "javascript" call s:MapDelimitersWithAlternative('//','', '/*','*/') elseif a:filetype ==? "jess"