Skip to content

Commit

Permalink
fix: actually consume new lines in release build
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed Feb 4, 2025
1 parent bd0a201 commit 9437635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/biome_grit_parser/src/lexer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ impl<'src> GritLexer<'src> {
fn lex_token(&mut self, current: u8) -> GritSyntaxKind {
match current {
b'\n' | b'\r' => {
debug_assert!(self.consume_newline());
assert!(self.consume_newline());
NEWLINE
}
b'\t' | b' ' => self.consume_whitespaces(),
Expand Down

0 comments on commit 9437635

Please sign in to comment.