From 03d9562db86d4ff3118d7a5099c3514f74e35be7 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sat, 25 Oct 2008 11:35:34 +1300 Subject: [PATCH] add support for actionscript --- doc/NERD_commenter.txt | 1 + plugin/NERD_commenter.vim | 2 ++ 2 files changed, 3 insertions(+) diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index c4a9a31..af58330 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -803,6 +803,7 @@ if your face looked like a toaster and a t-rex put together? :( - fix automake comments, thanks to Elias Pipping - make haml comments default to -# with / as the alternative delimiter, thanks to tpope + - add support for actionscript, thanks to Edwin Benavides 2.2.0 - rewrote the mappings system to be more "standard". diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 303b79e..eac7dc0 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -125,6 +125,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('%', '') elseif a:filetype == "acedb" call s:MapDelimitersWithAlternative('//','', '/*','*/') + elseif a:filetype == "actionscript" + call s:MapDelimitersWithAlternative('//','', '/*','*/') elseif a:filetype == "ada" call s:MapDelimitersWithAlternative('--','', '-- ', '') elseif a:filetype == "ahdl"