From 3e75a661dd6d5837b4c4b15f10b5fcfc19306beb Mon Sep 17 00:00:00 2001 From: chbk Date: Fri, 21 Feb 2025 22:20:53 +0100 Subject: [PATCH] Improve Rust syntax highlighting (#25333) Release Notes: - Improved Rust syntax highlighting. | Zed 0.174.6 | With this PR | | --- | --- | | ![Image](https://github.com/user-attachments/assets/0ec56dd0-2c17-4b5f-98e3-0897cb4e0192) | ![Image](https://github.com/user-attachments/assets/309de467-dd32-47e9-ac40-96334a20d5c3) | - `identifier`: `variable` ```rust let identifier = true; const IDENTIFIER: i32 = 3; ``` --------- Co-authored-by: Marshall Bowers --- 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 5244cd630dc0e9ba5e017c2cc0ef79d49244b806..36e94ad2508e228f431bff7b2b08f0bccb30f52f 100644 --- a/crates/languages/src/rust/highlights.scm +++ b/crates/languages/src/rust/highlights.scm @@ -1,3 +1,4 @@ +(identifier) @variable (type_identifier) @type (primitive_type) @type.builtin (self) @variable.special