Remove {{ }} from detecting htmldjango, #560

This commit is contained in:
Adam Stankiewicz
2020-09-29 16:26:03 +02:00
parent 63f43f3b01
commit 46b09b0d5b
3 changed files with 5 additions and 3 deletions

View File

@@ -378,7 +378,7 @@ func! polyglot#DetectHtmlFiletype()
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\)\(\<\|\>\)\|{#\s\+'
set ft=htmldjango | return
endif
if line =~# '\(\<\|\>\)DTD\s\+XHTML\s'