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 Desdaemon committed Mar 26, 2024
1 parent 5fcbfb8 commit c25a2ef
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 c25a2ef

Please sign in to comment.