feat(jinja,jinja_inline)!: update parser and queries

Breaking change: replace anonymous control flow nodes with named nodes.
This commit is contained in:
Christian Clason 2026-07-02 12:26:27 +02:00 committed by Christian Clason
parent fc6ad62eab
commit e778b6097d
2 changed files with 15 additions and 14 deletions

View file

@ -49,14 +49,15 @@
] @keyword
[
"endtrans"
"endblock"
"endwith"
"endfilter"
"endmacro"
"endcall"
"endset"
"endautoescape"
(endtrans_statement)
(endblock_statement)
(endwith_statement)
(endfilter_statement)
(endmacro_statement)
(endcall_statement)
(endset_statement)
(endautoescape_statement)
"required"
] @keyword
(do_statement
@ -74,9 +75,9 @@
[
"if"
"else"
"endif"
"elif"
(else_statement)
(endif_statement)
(elif_block)
] @keyword.conditional
[
@ -84,7 +85,7 @@
"in"
"continue"
"break"
"endfor"
(endfor_statement)
] @keyword.repeat
"call" @function.call