diff options
author | Michael Davis | 2024-03-07 15:07:57 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2024-03-21 15:20:29 +0000 |
commit | c099dde2a7c28a34a665d304e9a04acbb9c325e4 (patch) | |
tree | e049fc90bdad1c3c11734df89d18e32dc2e1a744 /runtime/queries/rust | |
parent | 9ceeea5a83270284b42813a128962ca5102b07f6 (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.scm | 3 |
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 |