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 = { wit = {
install_info = { install_info = {
revision = 'v1.3.0', revision = 'v1.4.0',
url = 'https://github.com/bytecodealliance/tree-sitter-wit', url = 'https://github.com/bytecodealliance/tree-sitter-wit',
}, },
maintainers = { '@mkatychev' }, maintainers = { '@mkatychev' },

View file

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