summaryrefslogtreecommitdiffstats
path: root/syntax/ansible_hosts.vim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--syntax/ansible_hosts.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/ansible_hosts.vim b/syntax/ansible_hosts.vim
index 22791bda..cad58884 100644
--- a/syntax/ansible_hosts.vim
+++ b/syntax/ansible_hosts.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 hosts files
" Maintainer: Dave Honneffer <pearofducks@gmail.com>
@@ -33,3 +30,4 @@ if exists("g:ansible_attribute_highlight")
endif
let b:current_syntax = "ansible_hosts"
+endif