Skip to content

Commit 4ba4fe7

Browse files
authored
vdoc: highlight comments with gray color (#18436)
1 parent 3fb31b9 commit 4ba4fe7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/tools/vdoc/utils.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ fn color_highlight(code string, tb &ast.Table) string {
163163
}
164164
.comment {
165165
lit = if tok.lit != '' && tok.lit[0] == 1 {
166-
'//${tok.lit[1..]}'
166+
term.gray('//${tok.lit[1..]}')
167167
} else {
168-
'//${tok.lit}'
168+
term.gray('//${tok.lit}')
169169
}
170170
}
171171
.keyword {

0 commit comments

Comments
 (0)