summaryrefslogtreecommitdiffstats
path: root/syntax/ion.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/ion.vim')
-rw-r--r--syntax/ion.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/ion.vim b/syntax/ion.vim
index f8269815..0f1f82f1 100644
--- a/syntax/ion.vim
+++ b/syntax/ion.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/ion.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('ion', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ion') == -1
if v:version < 600
syntax clear
@@ -90,5 +85,3 @@ hi def link ionProcess PreProc
hi def link ionComment Comment
hi def link ionOperator Operator
hi def link ionFlag Boolean
-
-endif