fix zig fmt test regressions
This commit is contained in:
parent
82225f6568
commit
4617c5907a
@ -3296,11 +3296,9 @@ const Parser = struct {
|
|||||||
.index = p.tok_i,
|
.index = p.tok_i,
|
||||||
.ptr = &p.tokens[p.tok_i],
|
.ptr = &p.tokens[p.tok_i],
|
||||||
};
|
};
|
||||||
if (p.tokens[p.tok_i].id == .Eof) {
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
p.tok_i += 1;
|
p.tok_i += 1;
|
||||||
assert(result.ptr.id != .LineComment);
|
assert(result.ptr.id != .LineComment);
|
||||||
|
if (p.tok_i >= p.tokens.len) return result;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
const next_tok = p.tokens[p.tok_i];
|
const next_tok = p.tokens[p.tok_i];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user