mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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
|
||||
(identifier) @type)
|
||||
|
||||
|
||||
(struct_declaration
|
||||
(struct_member (variable_identifier_declaration (identifier) @field)))
|
||||
(struct_member (variable_identifier_declaration (identifier) @field)))
|
||||
|
||||
(type_constructor_or_function_call_expression
|
||||
(type_declaration) @function.call)
|
||||
|
|
@ -26,21 +26,26 @@
|
|||
"discard"
|
||||
"enable"
|
||||
"fallthrough"
|
||||
"fn"
|
||||
"let"
|
||||
"private"
|
||||
"read"
|
||||
"read_write"
|
||||
"storage"
|
||||
"type"
|
||||
"uniform"
|
||||
"var"
|
||||
"workgroup"
|
||||
"write"
|
||||
"override"
|
||||
(texel_format)
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"private"
|
||||
"storage"
|
||||
"uniform"
|
||||
"workgroup"
|
||||
] @storageclass
|
||||
|
||||
[
|
||||
"read"
|
||||
"read_write"
|
||||
"write"
|
||||
] @type.qualifier
|
||||
|
||||
"fn" @keyword.function
|
||||
|
||||
"return" @keyword.return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue