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: #19386

Signed-off-by: tecis <67809811+tecis@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
tecis
2026-02-12 17:46:54 +01:00
committed by Christian Brabandt
parent 238b0b0587
commit b27934bf8b
+2
View File
@@ -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