summaryrefslogtreecommitdiffstats
path: root/after/syntax/ruby.vim
diff options
context:
space:
mode:
Diffstat (limited to 'after/syntax/ruby.vim')
-rw-r--r--after/syntax/ruby.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/after/syntax/ruby.vim b/after/syntax/ruby.vim
index 78503c94..e57c1d70 100644
--- a/after/syntax/ruby.vim
+++ b/after/syntax/ruby.vim
@@ -1,4 +1,6 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yard') == -1
+if !polyglot#util#IsEnabled('yard', expand('<sfile>:p'))
+ finish
+endif
" Ruby syntax extensions for highlighting YARD documentation.
"
@@ -127,5 +129,3 @@ hi def link yardParametricType yardComment
hi def link yardArrow yardComment
hi def link yardHashAngle yardComment
hi def link yardHashCurly yardComment
-
-endif