Skip to content

Commit 17e1152

Browse files
committed
fix assert not mark
1 parent 454aa4b commit 17e1152

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/engine.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ fn _match<S: StrDrive>(req: &Request<S>, state: &mut State, ctx: MatchContext) -
296296
if popped_result {
297297
break 'result false;
298298
}
299+
state.marks.pop();
299300
ctx.skip_code_from(req, 1);
300301
}
301302
Jump::Branch1 => {
@@ -612,6 +613,7 @@ fn _match<S: StrDrive>(req: &Request<S>, state: &mut State, ctx: MatchContext) -
612613
ctx.skip_code_from(req, 1);
613614
continue;
614615
}
616+
state.marks.push();
615617

616618
let mut next_ctx = ctx.next_offset(3, Jump::AssertNot1);
617619
next_ctx.toplevel = false;

0 commit comments

Comments
 (0)