This commit is contained in:
Josh Thomas 2025-01-05 00:01:29 -06:00
parent c57ff43001
commit fab360bb60
21 changed files with 125 additions and 22 deletions

View file

@ -20,11 +20,11 @@ impl Parser {
// First pass: collect line offsets
for token in self.tokens.tokens() {
if token.line() > last_line {
if *token.line() > last_line {
if let Some(start) = token.start() {
line_offsets.add_line(*start as u32);
}
last_line = token.line();
last_line = *token.line();
}
}