Add semantic token modifier for crate root

This commit is contained in:
lhvy 2021-10-01 01:01:31 +10:00
parent c30a6a2974
commit dbb02370a4
No known key found for this signature in database
GPG key ID: E6CAEAA74B3C53AC
10 changed files with 141 additions and 14 deletions

View file

@ -133,6 +133,7 @@ pub struct HlRange {
// constant:: Emitted for consts.
// consuming:: Emitted for locals that are being consumed when use in a function call.
// controlFlow:: Emitted for control-flow related tokens, this includes the `?` operator.
// crateRoot:: Emitted for crate names, like `serde` and `crate`.
// declaration:: Emitted for names of definitions, like `foo` in `fn foo() {}`.
// defaultLibrary:: Emitted for items from built-in crates (std, core, alloc, test and proc_macro).
// documentation:: Emitted for documentation comments.