]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(django): Resolve FIXME of comparrison operators + localization tags
authortecis <67809811+tecis@users.noreply.github.com>
Sun, 17 May 2026 08:32:15 +0000 (08:32 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 17 May 2026 08:32:15 +0000 (08:32 +0000)
commit8b25d90b087fdc5cd2bc120a4aff414d080de53c
treeaf88525e764cf6c7e6b00c60d38c38a4d1625d08
parent403ba303b997b47c79241247e0d2b5fc698e3dd0
runtime(django): Resolve FIXME of comparrison operators + localization tags

Summary: Add highlight of comparison operators resolving FIXME left by maintainer.

How it works: By creating a the variable ‘djangoOperator’ with the regex
and defining to only highlight when enclosed within ‘djangoTag’ and
‘djangoVarBlock’ the highlight works as expected.

Note: Note even though the maintainer had left the note “FIXME ==, !=,
      <, >, <=, and >= should be djangoStatements” the results do work
as I think he intended even though the variable ‘djangoOperator’ had to
be created to achieve the result. By doing it this way the highlight
process does not get confused depending on the spacing of the comparison
operator. Example: {{ x>=10 }} and {{ x >= 10 }} work as expected.

Add tags related to localization.

Documentation source:

- https://docs.djangoproject.com/en/5.2/topics/i18n/formatting/#controlling-localization-in-templates

closes: #20225

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