feat(wit)!: update parser and queries

This commit is contained in:
Christian Clason
2025-07-19 15:15:04 +02:00
committed by Christian Clason
parent a98e67ad40
commit 1e3b7562c2
5 changed files with 23 additions and 20 deletions

View File

@@ -324,7 +324,7 @@ jsx (queries only)[^jsx] | unstable | `HFIJ ` | | @steelsojka
[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
[wing](https://github.com/winglang/tree-sitter-wing) | unstable | `HF JL` | | @gshpychka, @MarkMcCulloh
[wit](https://github.com/bytecodealliance/tree-sitter-wit) | unstable | `HF J ` | | @liamwh
[wit](https://github.com/bytecodealliance/tree-sitter-wit) | unstable | `HF J ` | | @mkatychev
[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
[xresources](https://github.com/ValdezFOmar/tree-sitter-xresources) | unstable | `HF JL` | | @ValdezFOmar

View File

@@ -2573,10 +2573,10 @@ return {
},
wit = {
install_info = {
revision = '37bf43c7f11d2b4af7a78d98a19e6d5c2cf04ad2',
revision = 'a0fd28afe24511160f0601ab45044690c1cb7d92',
url = 'https://github.com/bytecodealliance/tree-sitter-wit',
},
maintainers = { '@liamwh' },
maintainers = { '@mkatychev' },
tier = 2,
},
xcompose = {

View File

@@ -1,11 +1,6 @@
[
(world_items)
(world_body)
(interface_items)
(interface_body)
] @fold
(body) @fold
(world_items
(body
[
(use_item)
(import_item)

View File

@@ -1,12 +1,10 @@
(comment) @comment @spell
(ty
(id)) @type
(package_decl
(id) @module)
(valid_semver) @string.special
(version) @string.special
(world_item
name: (id) @module)
@@ -17,7 +15,7 @@
(import_item
name: (id) @module
(extern_type
(interface_body)))
(body)))
(import_item
name: (id) @function
@@ -27,7 +25,7 @@
(export_item
name: (id) @module
(extern_type
(interface_body)))
(body)))
(export_item
name: (id) @function
@@ -55,7 +53,7 @@
(flags_items
name: (id) @type)
(flags_body
(body
(id) @variable.member)
(variant_items
@@ -128,8 +126,6 @@
"s64"
"f32"
"f64"
"float32" ; deprecated
"float64" ; deprecated
"char"
"bool"
"string"
@@ -163,4 +159,13 @@
"<"
] @punctuation.bracket
"=" @operator
[
(line_comment)
(block_comment)
] @comment @spell
(line_comment
(doc_comment)) @comment.documentation
(block_comment
(doc_comment)) @comment.documentation

View File

@@ -1,2 +1,5 @@
((comment) @injection.content
([
(line_comment)
(block_comment)
] @injection.content
(#set! injection.language "comment"))