summaryrefslogtreecommitdiffstats
path: root/syntax/ansible.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/ansible.vim')
-rw-r--r--syntax/ansible.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/ansible.vim b/syntax/ansible.vim
index e6cb1565..a8032ff1 100644
--- a/syntax/ansible.vim
+++ b/syntax/ansible.vim
@@ -1,7 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ansible') != -1
- finish
-endif
-
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ansible') == -1
" Vim syntax file
" Language: Ansible YAML/Jinja templates
" Maintainer: Dave Honneffer <pearofducks@gmail.com>
@@ -106,3 +103,4 @@ else
endif
let b:current_syntax = "ansible"
+endif