just format

This commit is contained in:
hippietrail 2025-07-07 14:13:00 +09:00
parent 97752298ab
commit 76e5a72960

View file

@ -50,13 +50,13 @@ impl Expr for SequenceExpr {
for cur_expr in &self.exprs {
let out = cur_expr.run(cursor, tokens, source)?;
// Only expand the window if the match actually covers some tokens
if out.end > out.start {
window.expand_to_include(out.start);
window.expand_to_include(out.end.checked_sub(1).unwrap_or(out.start));
}
// Only advance cursor if we actually matched something
if out.end > cursor {
cursor = out.end;