summaryrefslogtreecommitdiffstats
path: root/syntax/cryptol.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/cryptol.vim')
-rw-r--r--syntax/cryptol.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/cryptol.vim b/syntax/cryptol.vim
index 6f098e8c..eb55af0a 100644
--- a/syntax/cryptol.vim
+++ b/syntax/cryptol.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/cryptol.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('cryptol', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'cryptol') == -1
" Vim syntax file
" Language: Cryptol
@@ -120,5 +115,3 @@ endif
let b:current_syntax = "cryptol"
" Options for vi: ts=8 sw=2 sts=2 nowrap noexpandtab ft=vim
-
-endif