summaryrefslogtreecommitdiffstats
path: root/syntax/bindzone.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/bindzone.vim')
-rw-r--r--syntax/bindzone.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/bindzone.vim b/syntax/bindzone.vim
index f66cd0f9..fd03e71a 100644
--- a/syntax/bindzone.vim
+++ b/syntax/bindzone.vim
@@ -1,11 +1,6 @@
-let s:base = expand("<sfile>:h:h")
-let Filter = { _, v -> stridx(v, s:base) == -1 && stridx(v, $VIMRUNTIME) == -1 && v !~ "after" }
-let files = filter(globpath(&rtp, 'syntax/bindzone.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('bindzone', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'bindzone') == -1
" Vim syntax file
" Language: BIND zone files (RFC 1035)
@@ -104,5 +99,3 @@ hi def link zoneComment Comment
let b:current_syntax = "bindzone"
" vim:sts=2 sw=2
-
-endif