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.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/crates/ide/src/syntax_highlighting/tags.rs b/crates/ide/src/syntax_highlighting/tags.rs
index e58392d67..336af3f4c 100644
--- a/crates/ide/src/syntax_highlighting/tags.rs
+++ b/crates/ide/src/syntax_highlighting/tags.rs
@@ -47,21 +47,27 @@ pub enum HlMod {
47 /// `foo` in `fn foo(x: i32)` is a definition, `foo` in `foo(90 + 2)` is 47 /// `foo` in `fn foo(x: i32)` is a definition, `foo` in `foo(90 + 2)` is
48 /// not. 48 /// not.
49 Definition, 49 Definition,
50 /// Doc-strings like this one.
50 Documentation, 51 Documentation,
52 /// Highlighting injection like rust code in doc strings or ra_fixture.
51 Injected, 53 Injected,
54 /// Mutable binding.
52 Mutable, 55 Mutable,
56 /// Value that is being consumed in a function call
53 Consuming, 57 Consuming,
58 /// Callable item or value.
54 Callable, 59 Callable,
55 /// Used for associated functions 60 /// Used for associated functions.
56 Static, 61 Static,
57 /// Used for items in impls&traits. 62 /// Used for items in traits and impls.
58 Associated, 63 Associated,
59 /// Used for intra doc links in doc injection. 64 /// Used for intra doc links in doc injection.
60 IntraDocLink, 65 IntraDocLink,
61 /// Used for items in traits and trait impls. 66 /// Used for items in traits and trait impls.
62 Trait, 67 Trait,
63 68
64 /// Keep this last! 69 // Keep this last!
70 /// Used for unsafe functions, mutable statics, union accesses and unsafe operations.
65 Unsafe, 71 Unsafe,
66} 72}
67 73