-
Notifications
You must be signed in to change notification settings - Fork 66
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
Fix -w #10
Comments
xref discussion under beyondgrep/ack2#445 Metacharacters and Non-Word chars ; https://github.com/petdance/ack2/issues/565 Unicode (ugh but should have tests to track what DOES work or new enough perls) |
This needs #1 for proper testing. |
Right now this has been changed to this:
Not sure if this is what we want to live with. |
As discussed on prior thread, that handles the commonsense case (where root issue is that the we must either document that only the commonsense case where -w means word means word and Warn/Error if pattern $str starts or ends with non-word punc [including metachas; if you want We discussed some ways using \k etc to make it work in edge cases but depends what we want the edges to be. |
I'll be getting at those edge cases today. That's why I didn't close this. |
|
We may also want to make an optimization such that if |
|
When did it come around? I'm not familiar with it. |
Perl 5.22 with notable improvements in 5.24. References: |
Interesting. Thanks for the pointers. I would never put something in ack where the behavior changes depending on what version of Perl is running. |
The regex syntax and semantics change in every major Perl release, including those of |
Redo the
-w
flag to properly handle words.Update documentation that this affects.
The text was updated successfully, but these errors were encountered: