forked from aniani/vim
patch 7.4.859
Problem: Vim doesn't recognize all htmldjango files. Solution: Recognize a comment. (Daniel Hahler, PR #410)
This commit is contained in:
parent
aa23b37942
commit
d8986fd914
@ -1,7 +1,7 @@
|
|||||||
" Vim support file to detect file types
|
" Vim support file to detect file types
|
||||||
"
|
"
|
||||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
" Last Change: 2015 Aug 11
|
" Last Change: 2015 Sep 08
|
||||||
|
|
||||||
" Listen very carefully, I will say this only once
|
" Listen very carefully, I will say this only once
|
||||||
if exists("did_load_filetypes")
|
if exists("did_load_filetypes")
|
||||||
@ -872,7 +872,7 @@ func! s:FThtml()
|
|||||||
setf xhtml
|
setf xhtml
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
if getline(n) =~ '{%\s*\(extends\|block\|load\)\>'
|
if getline(n) =~ '{%\s*\(extends\|block\|load\)\>\|{#\s\+'
|
||||||
setf htmldjango
|
setf htmldjango
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
@ -741,6 +741,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
859,
|
||||||
/**/
|
/**/
|
||||||
858,
|
858,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user