]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(django): Add missing statements and filters.
authortecis <67809811+tecis@users.noreply.github.com>
Fri, 17 Apr 2026 14:44:51 +0000 (14:44 +0000)
committerChristian Brabandt <cb@256bit.org>
Fri, 17 Apr 2026 14:44:51 +0000 (14:44 +0000)
Added the fallowing.

djangoStatement:

- querystring: Added in version Django 5.2.
- lorem: Added in version Django 1.8.
- verbatim: Added in version Django 1.10.

djangoFilter:

- force_escape: Added in version Django 1.8.
- iriencode: Added in version Django 1.8.
- json_script: Added in version 2.1.
- truncatechars_html: Added in version 1.7.

> According to current documentation the added keywords are supported [Django version 6](https://docs.djangoproject.com/en/6.0/ref/templates/builtins).

related: #19994

Signed-off-by: tecis <67809811+tecis@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/syntax/django.vim

index 353221af08a66d3861ba6b5c2cc9bd1590145a92..6fdf3cdcb263c2f6d3a0955740454cb74ea68c65 100644 (file)
@@ -34,6 +34,7 @@ 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
+syn keyword djangoStatement contained querystring lorem verbatim
 
 " Django templete built-in filters
 syn keyword djangoFilter contained add addslashes capfirst center cut date
@@ -48,6 +49,7 @@ syn keyword djangoFilter contained safe safeseq stringformat striptags
 syn keyword djangoFilter contained time timesince timeuntil title truncatechars
 syn keyword djangoFilter contained truncatewords truncatewords_html unordered_list upper urlencode
 syn keyword djangoFilter contained urlize urlizetrunc wordcount wordwrap yesno
+syn keyword djangoFilter contained force_escape iriencode json_script truncatechars_html
 
 " Keywords to highlight within comments
 syn keyword djangoTodo contained TODO FIXME XXX