mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 18:00:07 -04:00
highlights(wgsl): use more specific groups
This commit is contained in:
parent
1a767376cd
commit
dc5542a953
1 changed files with 15 additions and 10 deletions
|
|
@ -13,9 +13,9 @@
|
||||||
|
|
||||||
(struct_declaration
|
(struct_declaration
|
||||||
(identifier) @type)
|
(identifier) @type)
|
||||||
|
|
||||||
(struct_declaration
|
(struct_declaration
|
||||||
(struct_member (variable_identifier_declaration (identifier) @field)))
|
(struct_member (variable_identifier_declaration (identifier) @field)))
|
||||||
|
|
||||||
(type_constructor_or_function_call_expression
|
(type_constructor_or_function_call_expression
|
||||||
(type_declaration) @function.call)
|
(type_declaration) @function.call)
|
||||||
|
|
@ -26,21 +26,26 @@
|
||||||
"discard"
|
"discard"
|
||||||
"enable"
|
"enable"
|
||||||
"fallthrough"
|
"fallthrough"
|
||||||
"fn"
|
|
||||||
"let"
|
"let"
|
||||||
"private"
|
|
||||||
"read"
|
|
||||||
"read_write"
|
|
||||||
"storage"
|
|
||||||
"type"
|
"type"
|
||||||
"uniform"
|
|
||||||
"var"
|
"var"
|
||||||
"workgroup"
|
|
||||||
"write"
|
|
||||||
"override"
|
"override"
|
||||||
(texel_format)
|
(texel_format)
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
[
|
||||||
|
"private"
|
||||||
|
"storage"
|
||||||
|
"uniform"
|
||||||
|
"workgroup"
|
||||||
|
] @storageclass
|
||||||
|
|
||||||
|
[
|
||||||
|
"read"
|
||||||
|
"read_write"
|
||||||
|
"write"
|
||||||
|
] @type.qualifier
|
||||||
|
|
||||||
"fn" @keyword.function
|
"fn" @keyword.function
|
||||||
|
|
||||||
"return" @keyword.return
|
"return" @keyword.return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue