From 4ba4fe7c2503c65052286f807b9fbd4c09478006 Mon Sep 17 00:00:00 2001 From: yuyi Date: Wed, 14 Jun 2023 19:57:59 +0800 Subject: [PATCH] vdoc: highlight comments with gray color (#18436) --- cmd/tools/vdoc/utils.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tools/vdoc/utils.v b/cmd/tools/vdoc/utils.v index 81aaff9dba..8b518a38d7 100644 --- a/cmd/tools/vdoc/utils.v +++ b/cmd/tools/vdoc/utils.v @@ -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 {