diff --git a/cmd/tools/vdoc/html.v b/cmd/tools/vdoc/html.v
index 574e13b52a..15e9bd14d0 100644
--- a/cmd/tools/vdoc/html.v
+++ b/cmd/tools/vdoc/html.v
@@ -298,6 +298,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
}