]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(django): add syntax support for partial
authortecis <67809811+tecis@users.noreply.github.com>
Thu, 12 Feb 2026 16:46:54 +0000 (17:46 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 12 Feb 2026 16:46:54 +0000 (17:46 +0100)
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>
runtime/syntax/django.vim

index 76b47d2e597751574750f88388bff5f112b48b91..353221af08a66d3861ba6b5c2cc9bd1590145a92 100644 (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