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

View file

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