forked from edicl/cl-ppcre
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create new bindings for the referenced register upon entry to subpatt…
…ern-reference. When entering a register x via subpattern-reference, the registers local to x receive new dynamic bindings, which shadow the old bindings for the duration of the subpattern call. Previously, "local" did not include the register itself--x in this case. With this patch, the referenced register now receives a new binding as well. It's not entirely clear that this is the appropriate behavior. In a regex like "(.\1?)(?1)", the back-reference to '\1' now will always fail, rather than potentially matching according to what was matched in the first pass through the first register.
- Loading branch information
Showing
2 changed files
with
6 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters