Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--runtime/queries/rust/highlights.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm
index 004fb69b..3a4448ba 100644
--- a/runtime/queries/rust/highlights.scm
+++ b/runtime/queries/rust/highlights.scm
@@ -88,9 +88,14 @@
((type_arguments (type_identifier) @constant)
(#match? @constant "^[A-Z_]+$"))
(type_arguments (type_identifier) @type)
+; `_` in `(_, _)`
(tuple_struct_pattern "_" @comment.unused)
+; `_` in `Vec<_>`
((type_arguments (type_identifier) @comment.unused)
(#eq? @comment.unused "_"))
+; `_` in `Rc<[_]>`
+((array_type (type_identifier) @comment.unused)
+ (#eq? @comment.unused "_"))
; ---
; Primitives