From 1d92203107433362662e22a2452bdb27a25e4df8 Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sat, 25 Oct 2008 11:49:36 +1300 Subject: [PATCH] add support for ps1 --- doc/NERD_commenter.txt | 3 ++- plugin/NERD_commenter.vim | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index 24ab1e3..df5088a 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? :( - make haml comments default to -# with / as the alternative delimiter, thanks to tpope - add support for actionscript and processing thanks to Edwin Benavides + - add support for ps1 (powershell), thanks to Jason Mills 2.2.0 - rewrote the mappings system to be more "standard". @@ -990,7 +991,7 @@ Stefano Zacchiroli debcontrol, debchangelog, mkd Alex Tarkovsky ebuild and eclass Jorge Rodrigues gams Rainer Müller Objective C -Jason Mills Groovy +Jason Mills Groovy, ps1 Normandie Azucena vera Florian Apolloner ldif David Fishburn lookupfile diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 1feaa0f..4735cb2 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -627,6 +627,8 @@ function s:SetUpForNewFiletype(filetype, forceReset) call s:MapDelimiters('/*','*/') elseif a:filetype == "prolog" call s:MapDelimitersWithAlternative('%','','/*','*/') + elseif a:filetype == "ps1" + call s:MapDelimiters('#', '') elseif a:filetype == "psf" call s:MapDelimiters('#', '') elseif a:filetype == "ptcap"