crates/languages/src/rust/highlights.scm 🔗
@@ -93,6 +93,7 @@
"use"
"where"
"while"
+ "yield"
(crate)
(mutable_specifier)
(super)
Jason Lee created
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:

docs.rs:
https://docs.rs/async-stream/latest/async_stream/macro.try_stream.html

## Before
<img width="644" alt="image"
src="https://github.com/zed-industries/zed/assets/5518/da349187-57e6-4cea-b3e3-f628ce6a99e8">
## After update in Zed

crates/languages/src/rust/highlights.scm | 1 +
1 file changed, 1 insertion(+)
@@ -93,6 +93,7 @@
"use"
"where"
"while"
+ "yield"
(crate)
(mutable_specifier)
(super)