mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.doc: use the .parse_comments mode, instead of the older .toplevel_comments (the scanner/parser is now more robust)
This commit is contained in:
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
Block a user