]> git.lizzy.rs Git - rust.git/commitdiff
Merge #10403
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Fri, 1 Oct 2021 11:18:52 +0000 (11:18 +0000)
committerGitHub <noreply@github.com>
Fri, 1 Oct 2021 11:18:52 +0000 (11:18 +0000)
10403: feat: Add semantic token modifier for crate root r=Veykril a=lhvy

Resolves #9073

I managed to implement crate root highlighting for crates mentioned specifically by name (e.g. `serde` in `use serde::Serialize;`), but not for crates referred to with `crate` or `super`. How could I implement this?

> P.S. I'm participating in [Hacktoberfest 2021](https://hacktoberfest.digitalocean.com/). If this PR is up to standard and merged, I'd appreciate if the `hacktoberfest-accepted` label could be added. Thanks!

Co-authored-by: lhvy <me@lhvy.dev>
1  2 
crates/ide/src/syntax_highlighting/tests.rs