diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-03-23 22:59:57 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-03-23 22:59:57 +0000 |
commit | db552d60ec4613d5537d3ebdcc4130f1591c0589 (patch) | |
tree | 621685ee2f7bf5e527dfb408d4dda38d8b56cc7d /runtime/filetype.vim | |
parent | 7b5f8325ee8ecb93de52128303db5ecc4ffd430e (diff) |
updated for version 7.0232v7.0232
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r-- | runtime/filetype.vim | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index f245eec3f5..2ab0987050 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: 2006 Mar 21 +" Last Change: 2006 Mar 23 " Listen very carefully, I will say this only once if exists("did_load_filetypes") @@ -638,7 +638,7 @@ au BufNewFile,BufRead *.t.html setf tilde " HTML (.shtml and .stm for server side) au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm call s:FThtml() -" Distinguish between HTML and XHTML +" Distinguish between HTML, XHTML and Django fun! s:FThtml() let n = 1 while n < 10 && n < line("$") @@ -646,6 +646,10 @@ fun! s:FThtml() setf xhtml return endif + if getline(n) =~ '{%\s*\(extends\|block\)\>' + setf htmldjango + return + endif let n = n + 1 endwhile setf html |