@@ -1,23 +1,41 @@
1+(int_literal) @constant.numeric.integer
1−(const_literal) @constant.numeric
2+(float_literal) @constant.numeric.float
3+(bool_literal) @constant.builtin.boolean
5+(global_constant_declaration) @variable
6+(global_variable_declaration) @variable
7+(compound_statement) @variable
8+(const_expression) @function
10+(variable_identifier_declaration
11+ (identifier) @variable
3−(type_declaration) @type
12+ (type_declaration) @type)
5(function_declaration
14(function_declaration
6− (identifier) @function)
15+ (identifier) @function
16+ (function_return_type_declaration
17+ (type_declaration) @type))
20+ (variable_identifier_declaration
21+ (identifier) @variable.parameter
22+ (type_declaration) @type))
8(struct_declaration
24(struct_declaration
9 (identifier) @type)
25 (identifier) @type)
29+ (variable_identifier_declaration
30+ (identifier) @variable.other.member
31+ (type_declaration) @type)))
11(type_constructor_or_function_call_expression
33(type_constructor_or_function_call_expression
12 (type_declaration) @function)
34 (type_declaration) @function)
15− (variable_identifier_declaration (identifier) @variable.parameter))
23 "fallthrough"
41 "fallthrough"
@@ -26,36 +44,28 @@
28 "read_write"
46 "read_write"
34 "workgroup"
51 "workgroup"
36 (texel_format)
54 (texel_format)
37−] @keyword ; TODO reserved keywords
55+] @keyword
39−[
57+"fn" @keyword.function
42−] @constant.builtin.boolean
44−[ "," "." ":" ";" ] @punctuation.delimiter
59+"return" @keyword.control.return
46−;; brackets
61+["," "." ":" ";"] @punctuation.delimiter
54−] @punctuation.bracket
63+["(" ")" "[" "]" "{" "}"] @punctuation.bracket
60 "continue"
70 "continue"
61 "continuing"
71 "continuing"
@@ -64,7 +74,6 @@
@@ -92,10 +101,13 @@
95] @operator
107] @operator
97(attribute
109(attribute
98− (identifier) @variable.other.member)
110+ (identifier) @attribute)
100(comment) @comment
112(comment) @comment