aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/rust
diff options
context:
space:
mode:
authorMichael Davis2024-03-07 15:07:57 +0000
committerBlaž Hrastnik2024-03-21 15:20:29 +0000
commitc099dde2a7c28a34a665d304e9a04acbb9c325e4 (patch)
treee049fc90bdad1c3c11734df89d18e32dc2e1a744 /runtime/queries/rust
parent9ceeea5a83270284b42813a128962ca5102b07f6 (diff)
Rust: Highlight extern crate aliases
For example `extern crate alloc as myalloc;`
Diffstat (limited to 'runtime/queries/rust')
-rw-r--r--runtime/queries/rust/highlights.scm3
1 files changed, 2 insertions, 1 deletions
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