aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/rust/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/rust/highlights.scm')
-rw-r--r--runtime/queries/rust/highlights.scm9
1 files changed, 6 insertions, 3 deletions
diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm
index 5e469e67..6b14d74d 100644
--- a/runtime/queries/rust/highlights.scm
+++ b/runtime/queries/rust/highlights.scm
@@ -41,8 +41,9 @@
(field_initializer
(field_identifier) @property)
-(shorthand_field_initializer) @variable
-(shorthand_field_identifier) @variable
+(shorthand_field_initializer
+ (identifier) @variable.property)
+(shorthand_field_identifier) @variable.property
(lifetime
"'" @label
@@ -65,6 +66,8 @@
")"
"["
"]"
+ "{"
+ "}"
] @punctuation.bracket
(type_arguments
[
@@ -333,4 +336,4 @@
(type_identifier) @type
(identifier) @variable
-(field_identifier) @variable
+(field_identifier) @property