Skip to content

Commit

Permalink
fix issue where it would wrongly goto next char in iter
Browse files Browse the repository at this point in the history
  • Loading branch information
nulluser0 committed Jun 17, 2024
1 parent 37593d0 commit 0338180
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/frontend/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ fn tokenize_operator_or_symbol(c: char, chars: &mut Peekable<Chars>, tokens: &mu
'!' | '=' | '-' | '>' | '<' | '&' | '|' => {
chars.next();
handle_complex_operators(c, chars, tokens);
return;
}
_ => unreachable!(),
}
Expand Down

0 comments on commit 0338180

Please sign in to comment.