summaryrefslogtreecommitdiffstats
path: root/syntax/ps1.vim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--syntax/ps1.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/ps1.vim b/syntax/ps1.vim
index 69819dca..4453200e 100644
--- a/syntax/ps1.vim
+++ b/syntax/ps1.vim
@@ -1,7 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'powershell') != -1
- finish
-endif
-
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'powershell') == -1
" Vim syntax file
" Language: Windows PowerShell
" Maintainer: Peter Provost <peter@provost.org>
@@ -187,3 +184,4 @@ if version >= 508 || !exists("did_ps1_syn_inits")
endif
let b:current_syntax = "ps1"
+endif