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"