summaryrefslogtreecommitdiffstats
path: root/syntax/m4.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/m4.vim')
-rw-r--r--syntax/m4.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/m4.vim b/syntax/m4.vim
index 04ff28cd..9c872bb2 100644
--- a/syntax/m4.vim
+++ b/syntax/m4.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/m4.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('m4', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'm4') == -1
" Vim syntax file
" Language: M4
@@ -67,5 +62,3 @@ if main_syntax == 'm4'
endif
" vim: ts=4
-
-endif