diff options
author | Aramis Razzaghipour <[email protected]> | 2021-05-28 00:25:32 +0100 |
---|---|---|
committer | Aramis Razzaghipour <[email protected]> | 2021-06-23 00:40:04 +0100 |
commit | 3e7472f76c70c3b0a31bb72f6f318c1aa1aba83d (patch) | |
tree | fc99fe5bc5ff7d6826303d166cb911b63125f33d /crates/ide/src/syntax_highlighting.rs | |
parent | 3762cb4535dce9eaf7c3dbd4aa9c33bf6dd30c87 (diff) |
Add `public` semantic token modifier for public items
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. |