mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 13:00:08 -04:00
feat(wit)!: update parser and queries
This commit is contained in:
parent
a98e67ad40
commit
1e3b7562c2
5 changed files with 23 additions and 20 deletions
|
|
@ -1,11 +1,6 @@
|
|||
[
|
||||
(world_items)
|
||||
(world_body)
|
||||
(interface_items)
|
||||
(interface_body)
|
||||
] @fold
|
||||
(body) @fold
|
||||
|
||||
(world_items
|
||||
(body
|
||||
[
|
||||
(use_item)
|
||||
(import_item)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,2 +1,5 @@
|
|||
((comment) @injection.content
|
||||
([
|
||||
(line_comment)
|
||||
(block_comment)
|
||||
] @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue