bump version to 0.5.0

This commit is contained in:
Kangzhi Shi
2023-12-13 22:13:54 +02:00
committed by Steve Shi
parent 003c45dbff
commit 41bdcfe221
2 changed files with 4 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "sre-engine"
version = "0.4.3"
version = "0.5.0"
authors = ["Kangzhi Shi <shikangzhi@gmail.com>", "RustPython Team"]
description = "A low-level implementation of Python's SRE regex engine"
repository = "https://github.com/RustPython/sre-engine"

View File

@@ -1,8 +1,6 @@
// good luck to those that follow; here be dragons
use crate::constants::SreInfo;
use super::constants::{SreAtCode, SreCatCode, SreOpcode};
use super::constants::{SreAtCode, SreCatCode, SreOpcode, SreInfo};
use super::MAXREPEAT;
use optional::Optioned;
use std::convert::TryFrom;
@@ -284,7 +282,7 @@ fn _match<S: StrDrive>(req: &Request<S>, state: &mut State, ctx: MatchContext) -
};
popped_result = 'result: loop {
let yield_ = 'context: loop {
let yielded = 'context: loop {
match ctx.jump {
Jump::OpCode => {}
Jump::Assert1 => {
@@ -864,7 +862,7 @@ fn _match<S: StrDrive>(req: &Request<S>, state: &mut State, ctx: MatchContext) -
}
};
context_stack.push(ctx);
context_stack.push(yield_);
context_stack.push(yielded);
continue 'coro;
};
}