aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/syntax_highlighting/tags.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ide/src/syntax_highlighting/tags.rs')
-rw-r--r--crates/ide/src/syntax_highlighting/tags.rs4
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 }