fix zig fmt test regressions

master
Andrew Kelley 2020-05-20 00:19:00 -04:00
parent 82225f6568
commit 4617c5907a
1 changed files with 1 additions and 3 deletions

View File

@ -3296,11 +3296,9 @@ const Parser = struct {
.index = p.tok_i,
.ptr = &p.tokens[p.tok_i],
};
if (p.tokens[p.tok_i].id == .Eof) {
return result;
}
p.tok_i += 1;
assert(result.ptr.id != .LineComment);
if (p.tok_i >= p.tokens.len) return result;
while (true) {
const next_tok = p.tokens[p.tok_i];