Skip to content

Commit

Permalink
Rust: Highlight extern crate aliases
Browse files Browse the repository at this point in the history
For example `extern crate alloc as myalloc;`
  • Loading branch information
the-mikedavis authored and archseer committed Mar 21, 2024
1 parent 9ceeea5 commit c099dde
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/queries/rust/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c099dde

Please sign in to comment.