summaryrefslogtreecommitdiffstats
path: root/syntax/haxe.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/haxe.vim')
-rw-r--r--syntax/haxe.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/haxe.vim b/syntax/haxe.vim
index 1ca9f40a..9e12de94 100644
--- a/syntax/haxe.vim
+++ b/syntax/haxe.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/haxe.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('haxe', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'haxe') == -1
" Vim syntax file
" Language: haxe
@@ -434,5 +429,3 @@ if main_syntax == 'haxe'
unlet main_syntax
endif
let b:spell_options="contained"
-
-endif