summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-09-08 19:10:55 +0200
committerBram Moolenaar <Bram@vim.org>2015-09-08 19:10:55 +0200
commitd8986fd91494642b3bab305406aa55268498f49c (patch)
tree2c40f287bc864aa2e39297fd060c8fc7ee690bdd /runtime
parentaa23b379421aa214e6543b06c974594a25799b09 (diff)
downloadvim-git-d8986fd91494642b3bab305406aa55268498f49c.tar.gz
patch 7.4.859v7.4.859
Problem: Vim doesn't recognize all htmldjango files. Solution: Recognize a comment. (Daniel Hahler, PR #410)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/filetype.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 6bdedfdc9..923df6e2a 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1,7 +1,7 @@
" Vim support file to detect file types
"
" 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
if exists("did_load_filetypes")
@@ -872,7 +872,7 @@ func! s:FThtml()
setf xhtml
return
endif
- if getline(n) =~ '{%\s*\(extends\|block\|load\)\>'
+ if getline(n) =~ '{%\s*\(extends\|block\|load\)\>\|{#\s\+'
setf htmldjango
return
endif