v.doc: use the .parse_comments mode, instead of the older .toplevel_comments (the scanner/parser is now more robust)
parent
649ecab11f
commit
191e99c248
|
@ -429,7 +429,7 @@ pub fn (mut d Doc) generate() ? {
|
||||||
// parse files
|
// parse files
|
||||||
mut comments_mode := scanner.CommentsMode.skip_comments
|
mut comments_mode := scanner.CommentsMode.skip_comments
|
||||||
if d.with_comments {
|
if d.with_comments {
|
||||||
comments_mode = .toplevel_comments
|
comments_mode = .parse_comments
|
||||||
}
|
}
|
||||||
mut file_asts := []ast.File{}
|
mut file_asts := []ast.File{}
|
||||||
for i, file_path in v_files {
|
for i, file_path in v_files {
|
||||||
|
|
Loading…
Reference in New Issue