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/tags.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/tags.rs')
-rw-r--r-- | crates/ide/src/syntax_highlighting/tags.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/ide/src/syntax_highlighting/tags.rs b/crates/ide/src/syntax_highlighting/tags.rs index 9d481deae..b4d59d00b 100644 --- a/crates/ide/src/syntax_highlighting/tags.rs +++ b/crates/ide/src/syntax_highlighting/tags.rs | |||
@@ -71,6 +71,8 @@ pub enum HlMod { | |||
71 | Async, | 71 | Async, |
72 | /// Used for items from other crates. | 72 | /// Used for items from other crates. |
73 | Library, | 73 | Library, |
74 | /// Used for public items. | ||
75 | Public, | ||
74 | // Keep this last! | 76 | // Keep this last! |
75 | /// Used for unsafe functions, unsafe traits, mutable statics, union accesses and unsafe operations. | 77 | /// Used for unsafe functions, unsafe traits, mutable statics, union accesses and unsafe operations. |
76 | Unsafe, | 78 | Unsafe, |
@@ -194,6 +196,7 @@ impl HlMod { | |||
194 | HlMod::Trait, | 196 | HlMod::Trait, |
195 | HlMod::Async, | 197 | HlMod::Async, |
196 | HlMod::Library, | 198 | HlMod::Library, |
199 | HlMod::Public, | ||
197 | HlMod::Unsafe, | 200 | HlMod::Unsafe, |
198 | ]; | 201 | ]; |
199 | 202 | ||
@@ -213,6 +216,7 @@ impl HlMod { | |||
213 | HlMod::Trait => "trait", | 216 | HlMod::Trait => "trait", |
214 | HlMod::Async => "async", | 217 | HlMod::Async => "async", |
215 | HlMod::Library => "library", | 218 | HlMod::Library => "library", |
219 | HlMod::Public => "public", | ||
216 | HlMod::Unsafe => "unsafe", | 220 | HlMod::Unsafe => "unsafe", |
217 | } | 221 | } |
218 | } | 222 | } |