Mercurial > vim
annotate runtime/syntax/htmldjango.vim @ 8271:770774e66011 v7.4.1428
commit https://github.com/vim/vim/commit/edb4f2b3601b0abd47091606269c0ac3244a805b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 27 15:27:23 2016 +0100
patch 7.4.1428
Problem: Compiler warning for non-virtual destructor.
Solution: Make it virtual. (Yasuhiro Matsumoto)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 27 Feb 2016 15:30: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" |