runtime(django): add syntax support for partial
Commit:
https://github.com/vim/vim/commit/b27934bf8b77af376a758b341e41c981323b99cf
Author: tecis <
6780981...@users.noreply.github.com>
Date: Thu Feb 12 17:46:54 2026 +0100
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 <
6780981...@users.noreply.github.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/runtime/syntax/django.vim b/runtime/syntax/django.vim
index 76b47d2e5..353221af0 100644
--- a/runtime/syntax/django.vim
+++ b/runtime/syntax/django.vim
@@ -2,6 +2,7 @@
" Language: Django template
" Maintainer: Dave Hodder <
d...@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