From 0861ceaac2005a0c7935749a2292340209e0a045 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Thu, 4 Apr 2024 23:56:33 +0800 Subject: [PATCH] Add `yield` keyword highlight for Rust (#10104) Release Notes: - Added `yield` keyword highlight for Rust Ref: - https://github.com/rust-lang/rust-analyzer/pull/7209 - https://github.com/rust-lang/rust-analyzer/blob/master/crates/ide/src/syntax_highlighting/highlight.rs#L177 - https://doc.rust-lang.org/reference/keywords.html?highlight=yield#reserved-keywords In VS Code: ![SCR-20240403-hrb](https://github.com/zed-industries/zed/assets/5518/ec3e84ce-ea9d-4b2d-832d-ecdfec0def91) docs.rs: https://docs.rs/async-stream/latest/async_stream/macro.try_stream.html ![SCR-20240403-gpk](https://github.com/zed-industries/zed/assets/5518/07010c2c-341d-4ae2-ba80-5f4eab4dbf60) ## Before image ## After update in Zed ![SCR-20240403-hqk](https://github.com/zed-industries/zed/assets/5518/44f1687b-ec38-42c2-984d-15177bed7e5b) --- 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 7f39be3be0..e01010151f 100644 --- a/crates/languages/src/rust/highlights.scm +++ b/crates/languages/src/rust/highlights.scm @@ -93,6 +93,7 @@ "use" "where" "while" + "yield" (crate) (mutable_specifier) (super)