Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Named backrefs behave differently in Perl syntax #74

Closed
k-takata opened this issue Nov 17, 2016 · 1 comment
Closed

Named backrefs behave differently in Perl syntax #74

k-takata opened this issue Nov 17, 2016 · 1 comment

Comments

@k-takata
Copy link
Owner

k-takata commented Nov 17, 2016

Named backrefs (\k<name>, \g{name}) refer only the left most group with the name in Perl.
However they behave differently in Onigmo with Perl syntax. (

Onigmo/doc/RE

Lines 321 to 323 in b334081

When backreferencing with a name that is assigned to more than one groups,
the last group with the name is checked first, if not matched then the
previous one with the name, and so on, until there is a match.
)
They should refer only the left most group in Perl syntax.

Related: #73

k-takata added a commit that referenced this issue Nov 25, 2016
Named backrefs (\k<name>, \g{name}) refer only the left most group with
the name in Perl.
@k-takata
Copy link
Owner Author

Fixed in devel-6.0 branch. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant