diff options
author | Paul Daniel Faria <[email protected]> | 2020-06-16 01:17:26 +0100 |
---|---|---|
committer | Paul Daniel Faria <[email protected]> | 2020-06-17 13:29:13 +0100 |
commit | aae26bc5b864971ef54f4d95d5ed89a6436334e2 (patch) | |
tree | 69d972ce3b4cf3f184ebb97a9c2846b858770400 /crates/ra_ide/src/syntax_highlighting/tags.rs | |
parent | 931f3173992df6ac6b728fa9fa9a94d15781027e (diff) |
Add highlighting support for doc comments
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting/tags.rs')
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting/tags.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting/tags.rs b/crates/ra_ide/src/syntax_highlighting/tags.rs index 94f466966..f593ecad8 100644 --- a/crates/ra_ide/src/syntax_highlighting/tags.rs +++ b/crates/ra_ide/src/syntax_highlighting/tags.rs | |||
@@ -55,6 +55,7 @@ pub enum HighlightModifier { | |||
55 | /// `foo` in `fn foo(x: i32)` is a definition, `foo` in `foo(90 + 2)` is | 55 | /// `foo` in `fn foo(x: i32)` is a definition, `foo` in `foo(90 + 2)` is |
56 | /// not. | 56 | /// not. |
57 | Definition, | 57 | Definition, |
58 | Documentation, | ||
58 | Mutable, | 59 | Mutable, |
59 | Unsafe, | 60 | Unsafe, |
60 | } | 61 | } |
@@ -106,6 +107,7 @@ impl HighlightModifier { | |||
106 | HighlightModifier::Attribute, | 107 | HighlightModifier::Attribute, |
107 | HighlightModifier::ControlFlow, | 108 | HighlightModifier::ControlFlow, |
108 | HighlightModifier::Definition, | 109 | HighlightModifier::Definition, |
110 | HighlightModifier::Documentation, | ||
109 | HighlightModifier::Mutable, | 111 | HighlightModifier::Mutable, |
110 | HighlightModifier::Unsafe, | 112 | HighlightModifier::Unsafe, |
111 | ]; | 113 | ]; |
@@ -115,6 +117,7 @@ impl HighlightModifier { | |||
115 | HighlightModifier::Attribute => "attribute", | 117 | HighlightModifier::Attribute => "attribute", |
116 | HighlightModifier::ControlFlow => "control", | 118 | HighlightModifier::ControlFlow => "control", |
117 | HighlightModifier::Definition => "declaration", | 119 | HighlightModifier::Definition => "declaration", |
120 | HighlightModifier::Documentation => "documentation", | ||
118 | HighlightModifier::Mutable => "mutable", | 121 | HighlightModifier::Mutable => "mutable", |
119 | HighlightModifier::Unsafe => "unsafe", | 122 | HighlightModifier::Unsafe => "unsafe", |
120 | } | 123 | } |