Rust: Highlight extern crate aliases

For example `extern crate alloc as myalloc;`
This commit is contained in:
Michael Davis 2024-03-07 10:07:57 -05:00 committed by Blaž Hrastnik
parent 9ceeea5a83
commit c099dde2a7

View File

@ -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