summaryrefslogtreecommitdiffstats
path: root/syntax/csp.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/csp.vim')
-rw-r--r--syntax/csp.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/csp.vim b/syntax/csp.vim
index 70be4d47..341906b6 100644
--- a/syntax/csp.vim
+++ b/syntax/csp.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/csp.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('csp', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'csp') == -1
" Vim syntax file
" Language: CSP (Communication Sequential Processes, using FDR input syntax)
@@ -189,5 +184,3 @@ hi def link cspReservedIdentifier Error
let b:current_syntax = "csp"
" vim: ts=8
-
-endif