feat(wit)!: update parser and queries

Breaking change: `(package_decl)` renamed to `(decl_head)`
This commit is contained in:
Christian Clason 2026-07-15 23:24:36 +02:00 committed by Christian Clason
parent 78bebef150
commit 17f039f472
2 changed files with 9 additions and 3 deletions

View file

@ -2572,7 +2572,7 @@ return {
},
wit = {
install_info = {
revision = 'v1.3.0',
revision = 'v1.4.0',
url = 'https://github.com/bytecodealliance/tree-sitter-wit',
},
maintainers = { '@mkatychev' },

View file

@ -1,7 +1,7 @@
(ty
(id)) @type
(package_decl
(decl_head
(id) @module)
(version) @string.special
@ -12,7 +12,7 @@
"/"
] @punctuation.delimiter)
(package_decl
(decl_head
[
"@"
"/"
@ -121,6 +121,11 @@
"func" @keyword.function
(external_id
"@" @punctuation.special
"external-id" @attribute.builtin
id: (string_literal) @string)
[
"type"
"interface"
@ -168,6 +173,7 @@
"list"
"option"
"result"
"map"
"borrow"
"future"
"stream"