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

Comments

Projects
None yet
1 participant
@k-takata
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 k-takata added bug spec labels Nov 17, 2016

k-takata added a commit that referenced this issue Nov 25, 2016

Fix multiple name groups in Perl syntax (Fix #74)
Named backrefs (\k<name>, \g{name}) refer only the left most group with
the name in Perl.
@k-takata

This comment has been minimized.

Show comment
Hide comment
@k-takata

k-takata Nov 25, 2016

Owner

Fixed in devel-6.0 branch. Closing.

Owner

k-takata commented Nov 25, 2016

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