summaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-09-29 16:26:03 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2020-09-29 16:26:03 +0200
commit46b09b0d5b3cb45d8e62851c40b418a3b9f20af4 (patch)
treecfc15c83f83ec7344a431d93c21a0c0474d63645 /autoload
parent63f43f3b01a910444176eeb972c88964ebb87e45 (diff)
downloadvim-polyglot-46b09b0d5b3cb45d8e62851c40b418a3b9f20af4.tar.gz
vim-polyglot-46b09b0d5b3cb45d8e62851c40b418a3b9f20af4.zip
Remove {{ }} from detecting htmldjango, #560
Diffstat (limited to 'autoload')
-rw-r--r--autoload/polyglot.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/polyglot.vim b/autoload/polyglot.vim
index 07d9fe31..33210855 100644
--- a/autoload/polyglot.vim
+++ b/autoload/polyglot.vim
@@ -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'