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