summaryrefslogtreecommitdiffstats
path: root/syntax/ruby.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/ruby.vim')
-rw-r--r--syntax/ruby.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/ruby.vim b/syntax/ruby.vim
index 8621075f..4342b896 100644
--- a/syntax/ruby.vim
+++ b/syntax/ruby.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/ruby.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('ruby', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ruby') == -1
" Vim syntax file
" Language: Ruby
@@ -602,5 +597,3 @@ unlet! s:cpo_sav
delc SynFold
" vim: nowrap sw=2 sts=2 ts=8 noet fdm=marker:
-
-endif