diff options
Diffstat (limited to 'syntax/hive.vim')
-rw-r--r-- | syntax/hive.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/hive.vim b/syntax/hive.vim index 4c53ad7c..c03321d7 100644 --- a/syntax/hive.vim +++ b/syntax/hive.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/hive.vim', 1, 1), Filter) -if len(files) > 0 - exec 'source ' . files[0] +if !polyglot#util#IsEnabled('hive', expand('<sfile>:p')) finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'hive') == -1 " Vim syntax file " Language: HIVE Query Language @@ -142,5 +137,3 @@ hi link hiveVar Special let b:current_syntax = "hive" " vim: ts=4 - -endif |