mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
vdoc: highlight comments with gray color (#18436)
This commit is contained in:
parent
3fb31b971d
commit
4ba4fe7c25
1 changed files with 2 additions and 2 deletions
|
@ -163,9 +163,9 @@ fn color_highlight(code string, tb &ast.Table) string {
|
||||||
}
|
}
|
||||||
.comment {
|
.comment {
|
||||||
lit = if tok.lit != '' && tok.lit[0] == 1 {
|
lit = if tok.lit != '' && tok.lit[0] == 1 {
|
||||||
'//${tok.lit[1..]}'
|
term.gray('//${tok.lit[1..]}')
|
||||||
} else {
|
} else {
|
||||||
'//${tok.lit}'
|
term.gray('//${tok.lit}')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.keyword {
|
.keyword {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue