summaryrefslogtreecommitdiffstats
path: root/syntax/purescript.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/purescript.vim')
-rw-r--r--syntax/purescript.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/purescript.vim b/syntax/purescript.vim
index 259dab78..d6ef897c 100644
--- a/syntax/purescript.vim
+++ b/syntax/purescript.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/purescript.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('purescript', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'purescript') == -1
" syntax highlighting for purescript
"
@@ -224,5 +219,3 @@ highlight def link purescriptType Type
highlight def link purescriptComment Comment
let b:current_syntax = "purescript"
-
-endif