feat(wit)! update parser and queries to 1.2.0 (#8199)

This commit is contained in:
Mikhail Katychev 2025-11-17 04:06:00 -06:00 committed by GitHub
parent 0cfa599474
commit 69c76488f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 53 additions and 14 deletions

View file

@ -5,6 +5,7 @@ The following is a list of languages for which a parser can be installed through
Legend: Legend:
- **Tier:** _stable_ (updates follow semver releases), _unstable_ (updates follow HEAD), _unmaintained_ (no automatic updates), or _unsupported_ (known to be broken, cannot be installed) - **Tier:** _stable_ (updates follow semver releases), _unstable_ (updates follow HEAD), _unmaintained_ (no automatic updates), or _unsupported_ (known to be broken, cannot be installed)
- **Queries** available for **H**ighlights, **I**ndents, **F**olds, In**J**ections, **L**ocals - **Queries** available for **H**ighlights, **I**ndents, **F**olds, In**J**ections, **L**ocals
- **Node:** Parser requires `node` for installation
- **Maintainer** of queries in nvim-treesitter (may be different from parser maintainer!) - **Maintainer** of queries in nvim-treesitter (may be different from parser maintainer!)
<!--This section of the README is automatically updated by a CI job--> <!--This section of the README is automatically updated by a CI job-->
@ -327,7 +328,7 @@ jsx (queries only)[^jsx] | unstable | `HFIJ ` | @steelsojka
[wgsl](https://github.com/szebniok/tree-sitter-wgsl) | unstable | `HFIJ ` | @szebniok [wgsl](https://github.com/szebniok/tree-sitter-wgsl) | unstable | `HFIJ ` | @szebniok
[wgsl_bevy](https://github.com/tree-sitter-grammars/tree-sitter-wgsl-bevy) | unstable | `HFI  ` | @theHamsta [wgsl_bevy](https://github.com/tree-sitter-grammars/tree-sitter-wgsl-bevy) | unstable | `HFI  ` | @theHamsta
[wing](https://github.com/winglang/tree-sitter-wing) | unstable | `HF JL` | @gshpychka, @MarkMcCulloh [wing](https://github.com/winglang/tree-sitter-wing) | unstable | `HF JL` | @gshpychka, @MarkMcCulloh
[wit](https://github.com/bytecodealliance/tree-sitter-wit) | unstable | `HF J ` | @mkatychev [wit](https://github.com/bytecodealliance/tree-sitter-wit) | stable | `HF J ` | @mkatychev
[wxml](https://github.com/BlockLune/tree-sitter-wxml) | unstable | `HFIJ ` | @BlockLune [wxml](https://github.com/BlockLune/tree-sitter-wxml) | unstable | `HFIJ ` | @BlockLune
[xcompose](https://github.com/tree-sitter-grammars/tree-sitter-xcompose) | unstable | `H  JL` | @ObserverOfTime [xcompose](https://github.com/tree-sitter-grammars/tree-sitter-xcompose) | unstable | `H  JL` | @ObserverOfTime
[xml](https://github.com/tree-sitter-grammars/tree-sitter-xml) | unstable | `HFIJL` | @ObserverOfTime [xml](https://github.com/tree-sitter-grammars/tree-sitter-xml) | unstable | `HFIJL` | @ObserverOfTime

View file

@ -2603,11 +2603,11 @@ return {
}, },
wit = { wit = {
install_info = { install_info = {
revision = '230984dfaf803a0ff8f77da5034361a62c326577', revision = 'v1.2.0',
url = 'https://github.com/bytecodealliance/tree-sitter-wit', url = 'https://github.com/bytecodealliance/tree-sitter-wit',
}, },
maintainers = { '@mkatychev' }, maintainers = { '@mkatychev' },
tier = 2, tier = 1,
}, },
wxml = { wxml = {
install_info = { install_info = {

View file

@ -6,6 +6,32 @@
(version) @string.special (version) @string.special
(use_path
[
"@"
"/"
] @punctuation.delimiter)
(package_decl
[
"@"
"/"
] @punctuation.delimiter)
; feature gates with leading `@`
(_
.
"@" @punctuation.special
.
[
"since"
"unstable"
"deprecated"
] @attribute.builtin)
(unstable_gate
feature: (id) @string)
(world_item (world_item
name: (id) @module) name: (id) @module)
@ -53,8 +79,7 @@
(flags_items (flags_items
name: (id) @type) name: (id) @type)
(body (flags_field) @variable.member
(id) @variable.member)
(variant_items (variant_items
name: (id) @type) name: (id) @type)
@ -65,8 +90,7 @@
(enum_items (enum_items
name: (id) @type) name: (id) @type)
(enum_case (enum_case) @constant
name: (id) @constant)
(resource_item (resource_item
name: (id) @type) name: (id) @type)
@ -89,6 +113,9 @@
(use_path (use_path
(id) @module) (id) @module)
(alias_item
(id) @module)
(use_names_item (use_names_item
(id) @module) (id) @module)
@ -108,11 +135,16 @@
"static" @keyword.modifier "static" @keyword.modifier
"async" @keyword.coroutine
(uint) @constant
[ [
"include" "include"
"import" "import"
"export" "export"
"as" "as"
"with"
] @keyword.import ] @keyword.import
[ [
@ -129,20 +161,21 @@
"char" "char"
"bool" "bool"
"string" "string"
] @type.builtin
[
"tuple" "tuple"
"list" "list"
"option" "option"
"result" "result"
"borrow" "borrow"
] @type.builtin "future"
"stream"
] @type
"_" @variable.parameter.builtin
[ [
"@"
"_"
] @punctuation.special
[
"/"
";" ";"
":" ":"
"," ","
@ -150,6 +183,9 @@
"->" "->"
] @punctuation.delimiter ] @punctuation.delimiter
(use_path
"/" @punctuation.delimiter)
[ [
"{" "{"
"}" "}"
@ -159,6 +195,8 @@
"<" "<"
] @punctuation.bracket ] @punctuation.bracket
"=" @operator
[ [
(line_comment) (line_comment)
(block_comment) (block_comment)