fix assert not mark

This commit is contained in:
Kangzhi Shi
2024-01-03 17:17:27 +02:00
committed by Steve Shi
parent 454aa4b654
commit 17e1152de6

View File

@@ -296,6 +296,7 @@ fn _match<S: StrDrive>(req: &Request<S>, state: &mut State, ctx: MatchContext) -
if popped_result {
break 'result false;
}
state.marks.pop();
ctx.skip_code_from(req, 1);
}
Jump::Branch1 => {
@@ -612,6 +613,7 @@ fn _match<S: StrDrive>(req: &Request<S>, state: &mut State, ctx: MatchContext) -
ctx.skip_code_from(req, 1);
continue;
}
state.marks.push();
let mut next_ctx = ctx.next_offset(3, Jump::AssertNot1);
next_ctx.toplevel = false;