authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-05-20 00:19:00-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-05-20 00:19:00-04:00
log4617c5907a4b7933947a3223d19d637d143fd705
tree5674b241a5d66317e7065c5d2719a62f6667200b
parent82225f6568969856ffe9363d2b8b0f39548bd9df

fix zig fmt test regressions


1 files changed, 1 insertions(+), 3 deletions(-)

lib/std/zig/parse.zig+1-3
...@@ -3296,11 +3296,9 @@ const Parser = struct {...@@ -3296,11 +3296,9 @@ const Parser = struct {
3296 .index = p.tok_i,3296 .index = p.tok_i,
3297 .ptr = &p.tokens[p.tok_i],3297 .ptr = &p.tokens[p.tok_i],
3298 };3298 };
3299 if (p.tokens[p.tok_i].id == .Eof) {
3300 return result;
3301 }
3302 p.tok_i += 1;3299 p.tok_i += 1;
3303 assert(result.ptr.id != .LineComment);3300 assert(result.ptr.id != .LineComment);
3301 if (p.tok_i >= p.tokens.len) return result;
33043302
3305 while (true) {3303 while (true) {
3306 const next_tok = p.tokens[p.tok_i];3304 const next_tok = p.tokens[p.tok_i];