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