Skip to content

Commit

Permalink
tools: make vdoc more robust to incomplete code in code examples (do …
Browse files Browse the repository at this point in the history
…not stop for errors in them)
  • Loading branch information
spytheman committed Nov 1, 2023
1 parent 1356c61 commit c7e6a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/tools/vdoc/html.v
Expand Up @@ -316,7 +316,7 @@ fn html_highlight(code string, tb &ast.Table) string {
}
return '<span class="token ${typ}">${lit}</span>'
}
mut s := scanner.new_scanner(code, .parse_comments, &pref.Preferences{})
mut s := scanner.new_scanner(code, .parse_comments, &pref.Preferences{ output_mode: .silent })
mut tok := s.scan()
mut next_tok := s.scan()
mut buf := strings.new_builder(200)
Expand Down

0 comments on commit c7e6a1c

Please sign in to comment.