mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 12:20:02 -04:00
feat(wit)!: update parser and queries
Breaking change: `(package_decl)` renamed to `(decl_head)`
This commit is contained in:
parent
78bebef150
commit
17f039f472
2 changed files with 9 additions and 3 deletions
|
|
@ -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' },
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue