Skip to content

Commit

Permalink
vdoc: highlight comments with gray color (#18436)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Jun 14, 2023
1 parent 3fb31b9 commit 4ba4fe7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/tools/vdoc/utils.v
Expand Up @@ -163,9 +163,9 @@ fn color_highlight(code string, tb &ast.Table) string {
}
.comment {
lit = if tok.lit != '' && tok.lit[0] == 1 {
'//${tok.lit[1..]}'
term.gray('//${tok.lit[1..]}')
} else {
'//${tok.lit}'
term.gray('//${tok.lit}')
}
}
.keyword {
Expand Down

0 comments on commit 4ba4fe7

Please sign in to comment.