summaryrefslogtreecommitdiffstats
path: root/syntax/yacc.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/yacc.vim')
-rw-r--r--syntax/yacc.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/yacc.vim b/syntax/yacc.vim
index 70c63a4b..3dd9742a 100644
--- a/syntax/yacc.vim
+++ b/syntax/yacc.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/yacc.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('yacc', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'yacc') == -1
" Vim syntax file
" Language: Yacc
@@ -127,5 +122,3 @@ let b:current_syntax = "yacc"
" ---------------------------------------------------------------------
" Modelines: {{{1
" vim: ts=15 fdm=marker
-
-endif