mirror of
https://github.com/Automattic/harper.git
synced 2025-08-04 18:48:02 +00:00
just format
This commit is contained in:
parent
97752298ab
commit
76e5a72960
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue