Update src/analysis.zig

Co-authored-by: Isaac Freund <ifreund@ifreund.xyz>
This commit is contained in:
Lee Cannon 2020-11-03 22:44:50 +00:00 committed by GitHub
parent 60fbb33a20
commit 6ade7cad3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
} }