summaryrefslogtreecommitdiffstats
path: root/syntax/spec.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/spec.vim')
-rw-r--r--syntax/spec.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/spec.vim b/syntax/spec.vim
index 4dee097d..3a6772da 100644
--- a/syntax/spec.vim
+++ b/syntax/spec.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/spec.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('spec', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'spec') == -1
" Filename: spec.vim
" Purpose: Vim syntax file
@@ -233,5 +228,3 @@ hi def link specListedFilesShare Statement
let b:current_syntax = "spec"
" vim: ts=8
-
-endif