Skip to content

Commit fe1393c

Browse files
authored
queries(rust): Highlight type infer in more places (#14351)
1 parent 392e444 commit fe1393c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

runtime/queries/rust/highlights.scm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,14 @@
8888
((type_arguments (type_identifier) @constant)
8989
(#match? @constant "^[A-Z_]+$"))
9090
(type_arguments (type_identifier) @type)
91+
; `_` in `(_, _)`
9192
(tuple_struct_pattern "_" @comment.unused)
93+
; `_` in `Vec<_>`
9294
((type_arguments (type_identifier) @comment.unused)
9395
(#eq? @comment.unused "_"))
96+
; `_` in `Rc<[_]>`
97+
((array_type (type_identifier) @comment.unused)
98+
(#eq? @comment.unused "_"))
9499

95100
; ---
96101
; Primitives

0 commit comments

Comments
 (0)