highlights(wgsl): use more specific groups

This commit is contained in:
ObserverOfTime 2022-10-28 17:02:45 +03:00
parent 1a767376cd
commit dc5542a953

View file

@ -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