Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Add `crate` keyword to Rust (#10110)

Jason Lee8eeecdafec37
diff --git a/crates/languages/src/rust/highlights.scm b/crates/languages/src/rust/highlights.scm
index 7240173a892..7f39be3be0c 100644
--- a/crates/languages/src/rust/highlights.scm
+++ b/crates/languages/src/rust/highlights.scm
@@ -70,11 +70,11 @@
"else"
"enum"
"extern"
- "for"
"fn"
+ "for"
"if"
- "in"
"impl"
+ "in"
"let"
"loop"
"macro_rules!"
@@ -88,11 +88,12 @@
"struct"
"trait"
"type"
+ "union"
+ "unsafe"
"use"
"where"
"while"
- "union"
- "unsafe"
+ (crate)
(mutable_specifier)
(super)
] @keyword