Skip to content

Commit

Permalink
vdoc: fmt html.v and utils.v
Browse files Browse the repository at this point in the history
  • Loading branch information
nedpals authored and spytheman committed Nov 28, 2023
1 parent 0cb1b95 commit 655d58c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/tools/vdoc/html.v
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,8 @@ fn html_highlight(code string, tb &ast.Table) string {
.key_true, .key_false {
tok_typ = .boolean
}
.lpar, .lcbr, .rpar, .rcbr, .lsbr, .rsbr, .semicolon, .colon, .comma, .dot,
.dotdot, .ellipsis {
.lpar, .lcbr, .rpar, .rcbr, .lsbr, .rsbr, .semicolon, .colon, .comma, .dot, .dotdot,
.ellipsis {
tok_typ = .punctuation
}
else {
Expand All @@ -463,7 +463,7 @@ fn html_highlight(code string, tb &ast.Table) string {
// expectation: "${a}.${b}${c}"
// reality: "${a.${b}${c}"
if tok.lit.len != 0 {
write_token(token.Token{kind: .rcbr}, .unone, mut buf)
write_token(token.Token{ kind: .rcbr }, .unone, mut buf)
}

inside_string_interp = false
Expand Down

0 comments on commit 655d58c

Please sign in to comment.