|
|
|
@ -2,57 +2,26 @@
|
|
|
|
|
(float_literal) @constant.numeric.float
|
|
|
|
|
(bool_literal) @constant.builtin.boolean
|
|
|
|
|
|
|
|
|
|
(global_constant_declaration) @variable
|
|
|
|
|
(global_variable_declaration) @variable
|
|
|
|
|
(compound_statement) @variable
|
|
|
|
|
(const_expression) @function
|
|
|
|
|
|
|
|
|
|
(variable_identifier_declaration
|
|
|
|
|
(identifier) @variable
|
|
|
|
|
(type_declaration) @type)
|
|
|
|
|
|
|
|
|
|
(function_declaration
|
|
|
|
|
(identifier) @function
|
|
|
|
|
(function_return_type_declaration
|
|
|
|
|
(type_declaration) @type))
|
|
|
|
|
|
|
|
|
|
(parameter
|
|
|
|
|
(variable_identifier_declaration
|
|
|
|
|
(identifier) @variable.parameter
|
|
|
|
|
(type_declaration) @type))
|
|
|
|
|
|
|
|
|
|
(struct_declaration
|
|
|
|
|
(identifier) @type)
|
|
|
|
|
|
|
|
|
|
(struct_declaration
|
|
|
|
|
(struct_member
|
|
|
|
|
(variable_identifier_declaration
|
|
|
|
|
(identifier) @variable.other.member
|
|
|
|
|
(type_declaration) @type)))
|
|
|
|
|
|
|
|
|
|
(type_constructor_or_function_call_expression
|
|
|
|
|
(type_declaration) @function)
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
"struct"
|
|
|
|
|
"bitcast"
|
|
|
|
|
"discard"
|
|
|
|
|
"enable"
|
|
|
|
|
"fallthrough"
|
|
|
|
|
"fn"
|
|
|
|
|
] @keyword
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
"let"
|
|
|
|
|
"private"
|
|
|
|
|
"read"
|
|
|
|
|
"read_write"
|
|
|
|
|
"storage"
|
|
|
|
|
"override"
|
|
|
|
|
"struct"
|
|
|
|
|
"type"
|
|
|
|
|
"uniform"
|
|
|
|
|
"var"
|
|
|
|
|
"workgroup"
|
|
|
|
|
"write"
|
|
|
|
|
"override"
|
|
|
|
|
(texel_format)
|
|
|
|
|
] @keyword
|
|
|
|
|
] @keyword.storage.type
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
(access_mode)
|
|
|
|
|
(address_space)
|
|
|
|
|
] @keyword.storage.modifier
|
|
|
|
|
|
|
|
|
|
"fn" @keyword.function
|
|
|
|
|
|
|
|
|
@ -62,13 +31,18 @@
|
|
|
|
|
|
|
|
|
|
["(" ")" "[" "]" "{" "}"] @punctuation.bracket
|
|
|
|
|
|
|
|
|
|
(type_declaration ["<" ">"] @punctuation.bracket)
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
"loop"
|
|
|
|
|
"for"
|
|
|
|
|
"while"
|
|
|
|
|
"break"
|
|
|
|
|
"continue"
|
|
|
|
|
"continuing"
|
|
|
|
|
] @keyword.control
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
"loop"
|
|
|
|
|
"for"
|
|
|
|
|
"while"
|
|
|
|
|
] @keyword.control.repeat
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
@ -80,35 +54,64 @@
|
|
|
|
|
] @keyword.control.conditional
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
|
"!"
|
|
|
|
|
"!="
|
|
|
|
|
"%"
|
|
|
|
|
"%="
|
|
|
|
|
"&"
|
|
|
|
|
"&&"
|
|
|
|
|
"&="
|
|
|
|
|
"*"
|
|
|
|
|
"*="
|
|
|
|
|
"+"
|
|
|
|
|
"++"
|
|
|
|
|
"+="
|
|
|
|
|
"-"
|
|
|
|
|
"--"
|
|
|
|
|
"-="
|
|
|
|
|
"->"
|
|
|
|
|
"/"
|
|
|
|
|
"!"
|
|
|
|
|
"/="
|
|
|
|
|
"<"
|
|
|
|
|
"<<"
|
|
|
|
|
"<="
|
|
|
|
|
"="
|
|
|
|
|
"=="
|
|
|
|
|
"!="
|
|
|
|
|
">"
|
|
|
|
|
">="
|
|
|
|
|
">>"
|
|
|
|
|
"<"
|
|
|
|
|
"<="
|
|
|
|
|
"<<"
|
|
|
|
|
"%"
|
|
|
|
|
"-"
|
|
|
|
|
"+"
|
|
|
|
|
"@"
|
|
|
|
|
"^"
|
|
|
|
|
"^="
|
|
|
|
|
"|"
|
|
|
|
|
"|="
|
|
|
|
|
"||"
|
|
|
|
|
"*"
|
|
|
|
|
"~"
|
|
|
|
|
"^"
|
|
|
|
|
"@"
|
|
|
|
|
"++"
|
|
|
|
|
"--"
|
|
|
|
|
] @operator
|
|
|
|
|
|
|
|
|
|
(function_declaration
|
|
|
|
|
(identifier) @function)
|
|
|
|
|
|
|
|
|
|
(parameter
|
|
|
|
|
(variable_identifier_declaration
|
|
|
|
|
(identifier) @variable.parameter))
|
|
|
|
|
|
|
|
|
|
(struct_declaration
|
|
|
|
|
(identifier) @type)
|
|
|
|
|
|
|
|
|
|
(struct_declaration
|
|
|
|
|
(struct_member
|
|
|
|
|
(variable_identifier_declaration
|
|
|
|
|
(identifier) @variable.other.member)))
|
|
|
|
|
|
|
|
|
|
(type_constructor_or_function_call_expression
|
|
|
|
|
(type_declaration (identifier) @function))
|
|
|
|
|
|
|
|
|
|
(type_declaration _ @type)
|
|
|
|
|
|
|
|
|
|
(attribute
|
|
|
|
|
(identifier) @attribute)
|
|
|
|
|
|
|
|
|
|
(comment) @comment
|
|
|
|
|
(identifier) @variable
|
|
|
|
|
|
|
|
|
|
(ERROR) @error
|
|
|
|
|
(comment) @comment
|
|
|
|
|