1
0
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:
Delyan Angelov 2022-02-06 23:49:21 +02:00
parent 649ecab11f
commit 191e99c248
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -429,7 +429,7 @@ pub fn (mut d Doc) generate() ? {
// parse files
mut comments_mode := scanner.CommentsMode.skip_comments
if d.with_comments {
comments_mode = .toplevel_comments
comments_mode = .parse_comments
}
mut file_asts := []ast.File{}
for i, file_path in v_files {