diff --git a/cmd/tools/vdoc/html.v b/cmd/tools/vdoc/html.v
index 70cbf879aa..4a2e8f4133 100644
--- a/cmd/tools/vdoc/html.v
+++ b/cmd/tools/vdoc/html.v
@@ -302,6 +302,8 @@ fn html_highlight(code string, tb &ast.Table) string {
"'$tok.lit'"
} else if typ == .char {
'`$tok.lit`'
+ } else if typ == .comment {
+ if tok.lit[0] == 1 { '//${tok.lit[1..]}' } else { '//$tok.lit' }
} else {
tok.lit
}