queries(rust): Highlight type infer in more places (#14351)

This commit is contained in:
Nik Revenco
2025-08-31 14:01:45 +01:00
committed by GitHub
parent 392e444ff9
commit fe1393cec8

View File

@@ -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