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

(?(n) (?: X | Y ) ) have a bug. #106

Open
tonco-miyazawa opened this issue Nov 1, 2018 · 1 comment
Open

(?(n) (?: X | Y ) ) have a bug. #106

tonco-miyazawa opened this issue Nov 1, 2018 · 1 comment
Labels

Comments

@tonco-miyazawa
Copy link

tonco-miyazawa commented Nov 1, 2018

(?(n) (?: X | Y ) ) and (?(n) X | Y ) behavior is same.
(?: ) is left out.

(?(n) (?: X | Y ) | ) is nomal behavior.
This is a solution to a this bug problem.

ruby 2.5.3p105 (2018-10-18 revision 65156) [x64-mingw32]
bregonig.dll Ver.4.12 with Onigmo 6.1.2

@tonco-miyazawa tonco-miyazawa changed the title (?(<name>)true|false) and (?: ) have a bug? (?(n) (?: X | Y ) ) have a bug. Nov 6, 2018
@k-takata k-takata added the bug label Jan 28, 2019
@k-takata
Copy link
Owner

It seems difficult to fix this.

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

No branches or pull requests

2 participants