diff options
Diffstat (limited to 'syntax/xmath.vim')
-rw-r--r-- | syntax/xmath.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/xmath.vim b/syntax/xmath.vim index 24c59aa6..e4a55d26 100644 --- a/syntax/xmath.vim +++ b/syntax/xmath.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/xmath.vim', 1, 1), Filter) -if len(files) > 0 - exec 'source ' . files[0] +if !polyglot#util#IsEnabled('xmath', expand('<sfile>:p')) finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'xmath') == -1 " Vim syntax file " Language: xmath (a simulation tool) @@ -232,5 +227,3 @@ endif let b:current_syntax = "xmath" " vim: ts=17 - -endif |