diff options
Diffstat (limited to 'syntax/htmldjango.vim')
-rw-r--r-- | syntax/htmldjango.vim | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/syntax/htmldjango.vim b/syntax/htmldjango.vim index 0282f30c..cd7e4660 100644 --- a/syntax/htmldjango.vim +++ b/syntax/htmldjango.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/htmldjango.vim', 1, 1), Filter) -if len(files) > 0 - exec 'source ' . files[0] +if !polyglot#util#IsEnabled('htmldjango', expand('<sfile>:p')) finish endif -if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'htmldjango') == -1 " Vim syntax file " Language: Django HTML template @@ -33,5 +28,3 @@ syn region djangoComment start="{%\s*comment\(\s\+.\{-}\)\?%}" end="{%\s*endcomm syn region djangoComBlock start="{#" end="#}" contains=djangoTodo containedin=ALLBUT,@djangoBlocks let b:current_syntax = "htmldjango" - -endif |