Mercurial > vim
annotate runtime/syntax/htmldjango.vim @ 7799:af3c41a3c53f v7.4.1196
commit https://github.com/vim/vim/commit/f28dbcea371b3a35727d91afc90fb90e0527d78a
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 29 22:03:47 2016 +0100
patch 7.4.1196
Problem: Still using __ARGS.
Solution: Remove __ARGS in several files. (script by Hirohito Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 29 Jan 2016 22:15:05 +0100 |
parents | 7090d7f160f7 |
children | 43efa4f5a8ea |
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 |
6 " For version 5.x: Clear all syntax items | |
7 " For version 6.x: Quit when a syntax file was already loaded | |
8 if version < 600 | |
9 syntax clear | |
10 elseif exists("b:current_syntax") | |
11 finish | |
12 endif | |
13 | |
14 if !exists("main_syntax") | |
15 let main_syntax = 'html' | |
16 endif | |
17 | |
18 if version < 600 | |
19 so <sfile>:p:h/django.vim | |
20 so <sfile>:p:h/html.vim | |
21 else | |
22 runtime! syntax/django.vim | |
23 runtime! syntax/html.vim | |
24 unlet b:current_syntax | |
25 endif | |
26 | |
1125 | 27 syn cluster djangoBlocks add=djangoTagBlock,djangoVarBlock,djangoComment,djangoComBlock |
28 | |
29 syn region djangoTagBlock start="{%" end="%}" contains=djangoStatement,djangoFilter,djangoArgument,djangoTagError display containedin=ALLBUT,@djangoBlocks | |
30 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
|
31 syn region djangoComment start="{%\s*comment\(\s\+.\{-}\)\?%}" end="{%\s*endcomment\s*%}" contains=djangoTodo containedin=ALLBUT,@djangoBlocks |
1125 | 32 syn region djangoComBlock start="{#" end="#}" contains=djangoTodo containedin=ALLBUT,@djangoBlocks |
798 | 33 |
34 let b:current_syntax = "htmldjango" |