annotate runtime/syntax/htmldjango.vim @ 17352:b2616a8be8a6 v8.1.1675

patch 8.1.1675: listener list not correctly updated on listener_remove() commit https://github.com/vim/vim/commit/7b73f914c4fc5a3f7ad97b678cc8137f964e3d62 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 13 13:03:02 2019 +0200 patch 8.1.1675: listener list not correctly updated on listener_remove() Problem: Listener list not correctly updated on listener_remove(). Solution: Only set "prev" when not removing a listener. Return one if the listener was found and removed.
author Bram Moolenaar <Bram@vim.org>
date Sat, 13 Jul 2019 13:15:05 +0200
parents 43efa4f5a8ea
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
798
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
1 " Vim syntax file
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
2 " Language: Django HTML template
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
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
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
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
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
8 finish
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
9 endif
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
10
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
11 if !exists("main_syntax")
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
12 let main_syntax = 'html'
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
13 endif
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
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
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
18
1125
96cd8222a819 updated for version 7.1a
vimboss
parents: 798
diff changeset
19 syn cluster djangoBlocks add=djangoTagBlock,djangoVarBlock,djangoComment,djangoComBlock
96cd8222a819 updated for version 7.1a
vimboss
parents: 798
diff changeset
20
96cd8222a819 updated for version 7.1a
vimboss
parents: 798
diff changeset
21 syn region djangoTagBlock start="{%" end="%}" contains=djangoStatement,djangoFilter,djangoArgument,djangoTagError display containedin=ALLBUT,@djangoBlocks
96cd8222a819 updated for version 7.1a
vimboss
parents: 798
diff changeset
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
96cd8222a819 updated for version 7.1a
vimboss
parents: 798
diff changeset
24 syn region djangoComBlock start="{#" end="#}" contains=djangoTodo containedin=ALLBUT,@djangoBlocks
798
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
25
95dac6af3b3a updated for version 7.0232
vimboss
parents:
diff changeset
26 let b:current_syntax = "htmldjango"