From c099dde2a7c28a34a665d304e9a04acbb9c325e4 Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Thu, 7 Mar 2024 10:07:57 -0500 Subject: Rust: Highlight extern crate aliases For example `extern crate alloc as myalloc;` --- runtime/queries/rust/highlights.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm index 3cda9d52..09068b4f 100644 --- a/runtime/queries/rust/highlights.scm +++ b/runtime/queries/rust/highlights.scm @@ -376,7 +376,8 @@ (use_wildcard (identifier) @namespace) (extern_crate_declaration - name: (identifier) @namespace) + name: (identifier) @namespace + alias: (identifier)? @namespace) (mod_item name: (identifier) @namespace) (scoped_use_list -- cgit v1.2.3-70-g09d2