You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolve the higher-level shortcoming of `sub_pair`: a pair consists of
"begin items" and "end items" groups, but have no indication that they
are serving the same purpose.
Add a auto-increment `pair_id` to both side of groups.
- Raise up the scope of `search_ctx` from `phased_search()` to
`#search()`, let the context lives across phases.
- When an end_item matched, remember the pair_id in context.
Then for any `sub_pair` group, we can check if the opposite has
already matched by the pair_id memo.
0 commit comments