summaryrefslogtreecommitdiffstats
path: root/syntax/haproxy.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/haproxy.vim')
-rw-r--r--syntax/haproxy.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/syntax/haproxy.vim b/syntax/haproxy.vim
index 54c54c3c..786c2fb8 100644
--- a/syntax/haproxy.vim
+++ b/syntax/haproxy.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haproxy') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'haproxy') != -1
+ finish
+endif
+
" Vim syntax file
" Language: HAproxy
" Maintainer: Dan Reif
@@ -356,5 +358,3 @@ delcommand HiLink
let b:current_syntax = "haproxy"
" vim: ts=8
-
-endif