diff options
Diffstat (limited to 'syntax/automake.vim')
-rw-r--r-- | syntax/automake.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/automake.vim b/syntax/automake.vim index 8012a051..62f7fa45 100644 --- a/syntax/automake.vim +++ b/syntax/automake.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/automake.vim', 1, 1), Filter) -if len(files) > 0 - exec 'source ' . files[0] +if !polyglot#util#IsEnabled('automake', expand('<sfile>:p')) finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'automake') == -1 " Vim syntax file " Language: automake Makefile.am @@ -84,5 +79,3 @@ hi def link automakeMakeBString makeBString let b:current_syntax = 'automake' " vi: ts=8 sw=4 sts=4 - -endif |