| ... | @@ -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; |
| 3304 | | 3302 | |
| 3305 | while (true) { | 3303 | while (true) { |
| 3306 | const next_tok = p.tokens[p.tok_i]; | 3304 | const next_tok = p.tokens[p.tok_i]; |