summaryrefslogtreecommitdiffstats
path: root/syntax/maple.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/maple.vim')
-rw-r--r--syntax/maple.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/maple.vim b/syntax/maple.vim
index 2042ab04..5d72a609 100644
--- a/syntax/maple.vim
+++ b/syntax/maple.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/maple.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('maple', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'maple') == -1
" Vim syntax file
" Language: Maple V (based on release 4)
@@ -629,5 +624,3 @@ endif
" Current Syntax: {{{1
let b:current_syntax = "maple"
" vim: ts=20 fdm=marker
-
-endif