summaryrefslogtreecommitdiffstats
path: root/syntax/handlebars.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/handlebars.vim')
-rw-r--r--syntax/handlebars.vim9
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/handlebars.vim b/syntax/handlebars.vim
index 1eba110a..e16e9a04 100644
--- a/syntax/handlebars.vim
+++ b/syntax/handlebars.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/handlebars.vim', 1, 1), Filter)
-if len(files) > 0
- exec 'source ' . files[0]
+if !polyglot#util#IsEnabled('handlebars', expand('<sfile>:p'))
finish
endif
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'handlebars') == -1
" Mustache & Handlebars syntax
" Language: Mustache, Handlebars
@@ -113,5 +108,3 @@ syn region mustacheScriptTemplate start=+<script [^>]*type *=[^>]*text/\(mustach
let b:current_syntax = "handlebars"
delcommand HtmlHiLink
-
-endif