runtime(django): add syntax support for partial
Commit:
https://github.com/vim/vim/commit/b27934bf8b77af376a758b341e41c981323b99cf
Author: tecis <[email protected]>
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
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 <[email protected]>
" 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
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/E1vqa30-008hf3-AY%40256bit.org.