File tree 2 files changed +12
-21
lines changed
compiler/src/dotty/tools/dotc/util
language-server/test/dotty/tools/languageserver
2 files changed +12
-21
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ object ParsedComment {
202
202
case Nil =>
203
203
None
204
204
case items =>
205
- Some (s """ ${heading (title)}:
205
+ Some (s """ ${bold (title)}
206
206
| ${fn(ctx, items)}
207
207
| """ .stripMargin)
208
208
}
@@ -212,15 +212,6 @@ object ParsedComment {
212
212
private def colorEnabled (implicit ctx : Context ): Boolean =
213
213
ctx.settings.color.value != " never"
214
214
215
- /**
216
- * If the color is enabled, underline `str`, otherwise make it a markdown header by
217
- * prepending `####`.
218
- */
219
- private def heading (str : String )(implicit ctx : Context ): String = {
220
- if (colorEnabled) s " $UNDERLINED$str$RESET"
221
- else s " #### $str"
222
- }
223
-
224
215
/** Show `str` in bold */
225
216
private def bold (str : String )(implicit ctx : Context ): String = {
226
217
if (colorEnabled) s " $BOLD$str$RESET"
Original file line number Diff line number Diff line change @@ -129,45 +129,45 @@ class HoverTest {
129
129
hoverContent(" [T, U](fizz: Int, buzz: String)(implicit ev: Boolean): Any" ,
130
130
""" Does something
131
131
|
132
- |#### Type Parameters:
132
+ |** Type Parameters**
133
133
| - **T** A first type param
134
134
| - **U** Another type param
135
135
|
136
- |#### Parameters:
136
+ |** Parameters**
137
137
| - **fizz** Again another number
138
138
| - **buzz** A String
139
139
| - **ev** An implicit boolean
140
140
|
141
- |#### Returns:
141
+ |** Returns**
142
142
| - Something
143
143
|
144
- |#### Throws:
144
+ |** Throws**
145
145
| - **java.lang.NullPointerException** if you're unlucky
146
146
| - **java.lang.InvalidArgumentException** if the argument is invalid
147
147
|
148
- |#### See Also:
148
+ |** See Also**
149
149
| - java.nio.file.Paths#get()
150
150
|
151
- |#### Examples:
151
+ |** Examples**
152
152
| - ```scala
153
153
| myFoo.bar[Int, String](0, "hello, world")
154
154
| ```
155
155
|
156
- |#### Usecases:
156
+ |** Usecases**
157
157
| - ```scala
158
158
| def bar(fizz: Int, buzz: String): Any
159
159
| ```
160
160
|
161
- |#### Note:
161
+ |** Note**
162
162
| - A note
163
163
|
164
- |#### Authors:
164
+ |** Authors**
165
165
| - John Doe
166
166
|
167
- |#### Since:
167
+ |** Since**
168
168
| - 0.1
169
169
|
170
- |#### Version:
170
+ |** Version**
171
171
| - 1.0""" .stripMargin))
172
172
173
173
}
You can’t perform that action at this time.
0 commit comments