summaryrefslogtreecommitdiffstats
path: root/syntax/smarty.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/smarty.vim')
-rw-r--r--syntax/smarty.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/smarty.vim b/syntax/smarty.vim
index b6c245a3..30d82d06 100644
--- a/syntax/smarty.vim
+++ b/syntax/smarty.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/smarty.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('smarty', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'smarty') == -1
" Vim syntax file
" Language: Smarty Templates
@@ -83,5 +78,3 @@ if main_syntax == 'smarty'
endif
" vim: ts=8
-
-endif