mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 20:10:10 -04:00
The majority of jinja variables aren't assigned any highlights at all. Assign @variable to all identifiers. Jinja filters without parameters are not highlighted as functions: add a query for these. Refine the existing @variable.member to only capture identifiers instead of broader nodes.
13 lines
384 B
Django/Jinja
13 lines
384 B
Django/Jinja
{% if loop.index is divisibleby 3 %}
|
|
{# ^^^^ @variable #}
|
|
{# ^^^^^ @variable.member #}
|
|
{# ^^^^^^^^^^ @keyword.operator #}
|
|
|
|
{% if loop.index is divisibleby(3) %}
|
|
{# ^^^^ @variable #}
|
|
{# ^^^^^ @variable.member #}
|
|
|
|
{% if foo.bar.baz is divisibleby 3 %}
|
|
{# ^^^ @variable #}
|
|
{# ^^^ @variable.member #}
|
|
{# ^^^ @variable.member #}
|