mirror of
https://github.com/neovim/neovim.git
synced 2026-02-18 02:11:06 +10:00
vim-patch:b27934b: runtime(django): add syntax support for partial
Add djangoStatement integrated in version 6. 'partialdef',
'endpartialdef', 'partial'.
[Template Reference: partial](https://docs.djangoproject.com/en/6.0/ref/templates/builtins/#partial)((introduced in Django 6.0)
and 'filter'.
closes: vim/vim#19386
b27934bf8b
Co-authored-by: tecis <67809811+tecis@users.noreply.github.com>
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
" Language: Django template
|
||||
" Maintainer: Dave Hodder <dmh@dmh.org.uk>
|
||||
" Last Change: 2021 Nov 29
|
||||
" 2026 Feb 12 by Vim Project add partial support #19386
|
||||
|
||||
" quit when a syntax file was already loaded
|
||||
if exists("b:current_syntax")
|
||||
@@ -32,6 +33,7 @@ syn keyword djangoStatement contained get_current_language trans noop blocktrans
|
||||
syn keyword djangoStatement contained endblocktrans get_available_languages
|
||||
syn keyword djangoStatement contained get_current_language_bidi plural
|
||||
syn keyword djangoStatement contained translate blocktranslate endblocktranslate
|
||||
syn keyword djangoStatement contained partialdef endpartialdef partial
|
||||
|
||||
" Django templete built-in filters
|
||||
syn keyword djangoFilter contained add addslashes capfirst center cut date
|
||||
|
||||
Reference in New Issue
Block a user