Update src/analysis.zig
Co-authored-by: Isaac Freund <ifreund@ifreund.xyz>
This commit is contained in:
parent
60fbb33a20
commit
6ade7cad3b
@ -51,7 +51,7 @@ pub fn collectDocComments(
|
|||||||
switch (tree.token_ids[curr_line_tok]) {
|
switch (tree.token_ids[curr_line_tok]) {
|
||||||
.LineComment => continue,
|
.LineComment => continue,
|
||||||
.DocComment, .ContainerDocComment => {
|
.DocComment, .ContainerDocComment => {
|
||||||
try lines.append(std.mem.trim(u8, tree.tokenSlice(curr_line_tok)[3..], &[_]u8{ ' ', '\t', '\n', '\r' }));
|
try lines.append(std.mem.trim(u8, tree.tokenSlice(curr_line_tok)[3..], &std.ascii.spaces));
|
||||||
},
|
},
|
||||||
else => break,
|
else => break,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user