summaryrefslogtreecommitdiffstats
path: root/syntax/cs.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/cs.vim')
-rw-r--r--syntax/cs.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/cs.vim b/syntax/cs.vim
index f9a8a6ae..e416cf7f 100644
--- a/syntax/cs.vim
+++ b/syntax/cs.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/cs.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('cs', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cs') == -1
" Vim syntax file
" Language: C#
@@ -228,5 +223,3 @@ let &cpoptions = s:save_cpo
unlet s:save_cpo
" vim: vts=16,28
-
-endif