From c7e6a1c8fa55527c145c57ae0b0af2f0a3e6d889 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 1 Nov 2023 14:01:09 +0200 Subject: [PATCH] tools: make vdoc more robust to incomplete code in code examples (do not stop for errors in them) --- cmd/tools/vdoc/html.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/tools/vdoc/html.v b/cmd/tools/vdoc/html.v index 5b64c5987070e8..ef3d52217f5676 100644 --- a/cmd/tools/vdoc/html.v +++ b/cmd/tools/vdoc/html.v @@ -316,7 +316,7 @@ fn html_highlight(code string, tb &ast.Table) string { } return '${lit}' } - 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)