From ba11e0f1ad214a0696ab48fbfdf06afd08ad2f91 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 14 Oct 2020 23:26:36 +0200 Subject: Improve django detection, closes #585 --- autoload/polyglot/detect.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoload/polyglot/detect.vim') diff --git a/autoload/polyglot/detect.vim b/autoload/polyglot/detect.vim index bdd2e48d..b1b5d6d7 100644 --- a/autoload/polyglot/detect.vim +++ b/autoload/polyglot/detect.vim @@ -298,7 +298,7 @@ func! polyglot#detect#Html(...) endif 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\+' + if line =~# '{%-\=\s*\(end.*\|extends\|block\|macro\|set\|if\|for\|include\|trans\|load\)\(\<\|\>\)\|{#\s\+' set ft=htmldjango | return endif if line =~# '\(\<\|\>\)DTD\s\+XHTML\s' -- cgit v1.2.3