summaryrefslogtreecommitdiffstats
path: root/syntax/forth.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/forth.vim')
-rw-r--r--syntax/forth.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/forth.vim b/syntax/forth.vim
index c61b6a46..1bf4946f 100644
--- a/syntax/forth.vim
+++ b/syntax/forth.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/forth.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('forth', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'forth') == -1
" Vim syntax file
" Language: FORTH
@@ -269,5 +264,3 @@ let b:current_syntax = "forth"
let &cpo = s:cpo_save
unlet s:cpo_save
" vim:ts=8:sw=4:nocindent:smartindent:
-
-endif