From 8eeecdafec37728ef1ab0d12da57fbb5a3f18735 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Wed, 3 Apr 2024 23:27:22 +0800 Subject: [PATCH] Add `crate` keyword to Rust (#10110) Release Notes: - Fixed `crate` keyword not being highlighted in Rust files. Ref: #10104 And I make a sort for them. --- crates/languages/src/rust/highlights.scm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/crates/languages/src/rust/highlights.scm b/crates/languages/src/rust/highlights.scm index 7240173a89..7f39be3be0 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