summaryrefslogtreecommitdiffstats
path: root/syntax/mako.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/mako.vim')
-rw-r--r--syntax/mako.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/mako.vim b/syntax/mako.vim
index aeaf4783..f1c75b87 100644
--- a/syntax/mako.vim
+++ b/syntax/mako.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/mako.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('mako', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'mako') == -1
" Vim syntax file
" Language: Mako
@@ -110,5 +105,3 @@ if version >= 508 || !exists("did_mako_syn_inits")
endif
let b:current_syntax = b:mako_outer_lang
-
-endif