From e2bbed8acc1f1cf498a0085cf771cf9bf40fb709 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 24 Sep 2020 10:50:19 +0200 Subject: Fix django highlighting, fixes #553 --- autoload/polyglot.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoload/polyglot.vim') diff --git a/autoload/polyglot.vim b/autoload/polyglot.vim index d8ee601f..97a83752 100644 --- a/autoload/polyglot.vim +++ b/autoload/polyglot.vim @@ -373,7 +373,7 @@ func! polyglot#DetectHtmlFiletype() for lnum in range(1, min([line("$"), 50])) let line = getline(lnum) if line =~# '{{.*}}\|{%-\=\s*\(end.*\|extends\|block\|macro\|set\|if\|for\|include\|trans\)\(\<\|\>\)\|{#\s\+' - set ft=jinja.html | return + set ft=htmldjango | return endif if line =~# '\(\<\|\>\)DTD\s\+XHTML\s' set ft=xhtml | return -- cgit v1.2.3