diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-06-23 00:58:59 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-23 00:58:59 +0100 |
commit | 3381c2e4a8bcea2db3edd1741a7dd3fcdb15231b (patch) | |
tree | fc99fe5bc5ff7d6826303d166cb911b63125f33d /crates/ide/src/syntax_highlighting.rs | |
parent | 3762cb4535dce9eaf7c3dbd4aa9c33bf6dd30c87 (diff) | |
parent | 3e7472f76c70c3b0a31bb72f6f318c1aa1aba83d (diff) |
Merge #9031
9031: Add `public` semantic token modifier for public items r=Veykril a=arzg
Closes #8943.
Co-authored-by: Aramis Razzaghipour <[email protected]>
Diffstat (limited to 'crates/ide/src/syntax_highlighting.rs')
-rw-r--r-- | crates/ide/src/syntax_highlighting.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ide/src/syntax_highlighting.rs b/crates/ide/src/syntax_highlighting.rs index d44a1b45f..5259d86d2 100644 --- a/crates/ide/src/syntax_highlighting.rs +++ b/crates/ide/src/syntax_highlighting.rs | |||
@@ -137,6 +137,7 @@ pub struct HlRange { | |||
137 | // injected:: Emitted for doc-string injected highlighting like rust source blocks in documentation. | 137 | // injected:: Emitted for doc-string injected highlighting like rust source blocks in documentation. |
138 | // intraDocLink:: Emitted for intra doc links in doc-strings. | 138 | // intraDocLink:: Emitted for intra doc links in doc-strings. |
139 | // library:: Emitted for items that are defined outside of the current crate. | 139 | // library:: Emitted for items that are defined outside of the current crate. |
140 | // public:: Emitted for items that are from the current crate and are `pub`. | ||
140 | // mutable:: Emitted for mutable locals and statics. | 141 | // mutable:: Emitted for mutable locals and statics. |
141 | // static:: Emitted for "static" functions, also known as functions that do not take a `self` param, as well as statics and consts. | 142 | // static:: Emitted for "static" functions, also known as functions that do not take a `self` param, as well as statics and consts. |
142 | // trait:: Emitted for associated trait items. | 143 | // trait:: Emitted for associated trait items. |