fix: 同名捕获组回引与 groups 字段改末次已定义语义

This commit is contained in:
2026-10-14 08:05:13 +00:00
parent 3d3bdaa5cf
commit fe430d4bcb
12 changed files with 287 additions and 42 deletions
+5
View File
@@ -102,6 +102,11 @@ pub enum Insn {
/// Perform a backreference match.
BackRef(u32),
/// Perform a backreference match against the last-defined occurrence of a
/// name shared by multiple capture groups. Indices are 0-based, in source
/// order; if no occurrence is defined the match succeeds.
BackRefLastDefined(Vec<CaptureGroupID>),
/// Match the next character against the bracket contents, stored at the given index in the CompiledRegex.
Bracket(usize),