Mercurial > vim
annotate runtime/syntax/htmldjango.vim @ 10501:cd36f3024b06 v8.0.0143
commit https://github.com/vim/vim/commit/f845b87f2b3a45cbee160e28d7a3f50e54054809
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 6 14:04:54 2017 +0100
patch 8.0.0143: line number of current buffer in getbufinfo() is wrong
Problem: Line number of current buffer in getbufinfo() is wrong.
Solution: For the current buffer use the current line number. (Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 06 Jan 2017 14:15:04 +0100 |
parents | 43efa4f5a8ea |
children |
rev | line source |
---|---|
798 | 1 " Vim syntax file |
2 " Language: Django HTML template | |
3 " Maintainer: Dave Hodder <dmh@dmh.org.uk> | |
6091
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
1125
diff
changeset
|
4 " Last Change: 2014 Jul 13 |
798 | 5 |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6091
diff
changeset
|
6 " quit when a syntax file was already loaded |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6091
diff
changeset
|
7 if exists("b:current_syntax") |
798 | 8 finish |
9 endif | |
10 | |
11 if !exists("main_syntax") | |
12 let main_syntax = 'html' | |
13 endif | |
14 | |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6091
diff
changeset
|
15 runtime! syntax/django.vim |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6091
diff
changeset
|
16 runtime! syntax/html.vim |
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
6091
diff
changeset
|
17 unlet b:current_syntax |
798 | 18 |
1125 | 19 syn cluster djangoBlocks add=djangoTagBlock,djangoVarBlock,djangoComment,djangoComBlock |
20 | |
21 syn region djangoTagBlock start="{%" end="%}" contains=djangoStatement,djangoFilter,djangoArgument,djangoTagError display containedin=ALLBUT,@djangoBlocks | |
22 syn region djangoVarBlock start="{{" end="}}" contains=djangoFilter,djangoArgument,djangoVarError display containedin=ALLBUT,@djangoBlocks | |
6091
7090d7f160f7
Update runtime files. Add vroom file support.
Bram Moolenaar <bram@vim.org>
parents:
1125
diff
changeset
|
23 syn region djangoComment start="{%\s*comment\(\s\+.\{-}\)\?%}" end="{%\s*endcomment\s*%}" contains=djangoTodo containedin=ALLBUT,@djangoBlocks |
1125 | 24 syn region djangoComBlock start="{#" end="#}" contains=djangoTodo containedin=ALLBUT,@djangoBlocks |
798 | 25 |
26 let b:current_syntax = "htmldjango" |