aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornotoria2021-06-04 07:43:27 +0000
committerBlaž Hrastnik2021-06-04 14:16:33 +0000
commitf3a243c6cbeeeeec4ccafc813d66df7a0f5dd1a8 (patch)
tree6776de44a708efa82607adb9ae4d75057e5c62aa
parentadcfcf904445336340944bce3f699bb6365ebf2b (diff)
Rust: Highlight crate namespace, categorize `mut`
-rw-r--r--runtime/queries/rust/highlights.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm
index adf579ae..b72216f6 100644
--- a/runtime/queries/rust/highlights.scm
+++ b/runtime/queries/rust/highlights.scm
@@ -34,6 +34,9 @@
; Namespaces
(crate) @namespace
+(extern_crate_declaration
+ (crate)
+ name: (identifier) @namespace)
(scoped_use_list
path: (identifier) @namespace)
(scoped_use_list
@@ -143,7 +146,7 @@
"use" @keyword
"where" @keyword
"while" @keyword
-(mutable_specifier) @keyword
+(mutable_specifier) @keyword.mut
(use_list (self) @keyword)
(scoped_use_list (self) @keyword)
(scoped_identifier (self) @keyword)