From f52282398864858e35e045679282fe3a94b4094d Mon Sep 17 00:00:00 2001 From: chbk Date: Mon, 8 Sep 2025 11:32:08 +0200 Subject: [PATCH] Highlight shorthand fields in Rust (#37674) Release Notes: - Highlight shorthand fields in Rust | Zed 0.202.7 | With this PR | | --- | --- | | rust-0 202 7 | rust-pr | --- crates/languages/src/rust/highlights.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/languages/src/rust/highlights.scm b/crates/languages/src/rust/highlights.scm index ec7e2d42510c58d25f09c13e78d2f75bf7d20b5c..b0daac71a097b922aa810aadef64a18e95b5b649 100644 --- a/crates/languages/src/rust/highlights.scm +++ b/crates/languages/src/rust/highlights.scm @@ -5,6 +5,7 @@ (primitive_type) @type.builtin (self) @variable.special (field_identifier) @property +(shorthand_field_identifier) @property (trait_item name: (type_identifier) @type.interface) (impl_item trait: (type_identifier) @type.interface)