Skip to content

refactor: simplify parser ? #330

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Apr 12, 2025
Prev Previous commit
Next Next commit
comment…
juleswritescode committed Apr 12, 2025
commit dc0ab6e319c1d982e4365c66f95e6c927d3341bc
2 changes: 1 addition & 1 deletion crates/pgt_statement_splitter/src/parser.rs
Original file line number Diff line number Diff line change
@@ -47,7 +47,7 @@ impl Parser {
.unwrap_or(TextSize::from(0)),
));

// next_pos should be the initialised with the first valid token already
// Place `current_pos` on the first relevant token
let mut current_pos = 0;
while is_irrelevant_token(tokens.get(current_pos).unwrap_or(&eof_token)) {
current_pos += 1;