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

@ -1083,7 +1083,7 @@ return {
jinja = {
install_info = {
location = 'tree-sitter-jinja',
revision = '413dba9fea354b62f6adada1815b2f504e32ffb5',
revision = 'c213d3745ccdcaaa858869181c7b1bf9557a025f',
url = 'https://github.com/cathaysia/tree-sitter-jinja',
},
maintainers = { '@cathaysia' },
@ -1094,7 +1094,7 @@ return {
jinja_inline = {
install_info = {
location = 'tree-sitter-jinja_inline',
revision = '413dba9fea354b62f6adada1815b2f504e32ffb5',
revision = 'c213d3745ccdcaaa858869181c7b1bf9557a025f',
url = 'https://github.com/cathaysia/tree-sitter-jinja',
},
maintainers = { '@cathaysia' },

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