diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-24 10:50:19 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-09-24 10:50:19 +0200 |
commit | e2bbed8acc1f1cf498a0085cf771cf9bf40fb709 (patch) | |
tree | 001f4955c399ac71b34fa38f2a3bd63526df50d6 /autoload/polyglot.vim | |
parent | 6b4da2753814cc61cd842c589d829f03cd7ca98d (diff) | |
download | vim-polyglot-e2bbed8acc1f1cf498a0085cf771cf9bf40fb709.tar.gz vim-polyglot-e2bbed8acc1f1cf498a0085cf771cf9bf40fb709.zip |
Fix django highlighting, fixes #553
Diffstat (limited to 'autoload/polyglot.vim')
-rw-r--r-- | autoload/polyglot.vim | 2 |
1 files changed, 1 insertions, 1 deletions
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 |