Mercurial > vim
comparison runtime/syntax/django.vim @ 6091:7090d7f160f7
Update runtime files. Add vroom file support.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 26 Jul 2014 13:40:44 +0200 |
parents | 161d01cbb165 |
children | 43efa4f5a8ea |
comparison
equal
deleted
inserted
replaced
6090:7b2d05a51e76 | 6091:7090d7f160f7 |
---|---|
1 " Vim syntax file | 1 " Vim syntax file |
2 " Language: Django template | 2 " Language: Django template |
3 " Maintainer: Dave Hodder <dmh@dmh.org.uk> | 3 " Maintainer: Dave Hodder <dmh@dmh.org.uk> |
4 " Last Change: 2012 Apr 09 | 4 " Last Change: 2014 Jul 13 |
5 | 5 |
6 " For version 5.x: Clear all syntax items | 6 " For version 5.x: Clear all syntax items |
7 " For version 6.x: Quit when a syntax file was already loaded | 7 " For version 6.x: Quit when a syntax file was already loaded |
8 if version < 600 | 8 if version < 600 |
9 syntax clear | 9 syntax clear |
62 " Django template tag and variable blocks | 62 " Django template tag and variable blocks |
63 syn region djangoTagBlock start="{%" end="%}" contains=djangoStatement,djangoFilter,djangoArgument,djangoTagError display | 63 syn region djangoTagBlock start="{%" end="%}" contains=djangoStatement,djangoFilter,djangoArgument,djangoTagError display |
64 syn region djangoVarBlock start="{{" end="}}" contains=djangoFilter,djangoArgument,djangoVarError display | 64 syn region djangoVarBlock start="{{" end="}}" contains=djangoFilter,djangoArgument,djangoVarError display |
65 | 65 |
66 " Django template 'comment' tag and comment block | 66 " Django template 'comment' tag and comment block |
67 syn region djangoComment start="{%\s*comment\s*%}" end="{%\s*endcomment\s*%}" contains=djangoTodo | 67 syn region djangoComment start="{%\s*comment\(\s\+.\{-}\)\?%}" end="{%\s*endcomment\s*%}" contains=djangoTodo |
68 syn region djangoComBlock start="{#" end="#}" contains=djangoTodo | 68 syn region djangoComBlock start="{#" end="#}" contains=djangoTodo |
69 | 69 |
70 " Define the default highlighting. | 70 " Define the default highlighting. |
71 " For version 5.7 and earlier: only when not done already | 71 " For version 5.7 and earlier: only when not done already |
72 " For version 5.8 and later: only when an item doesn't have highlighting yet | 72 " For version 5.8 and later: only when an item doesn't have highlighting yet |