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
Rakudo has problems with general quantifier in regexes #1979
Comments
From @moritz09:07 <@szabgab> rakudo: say "a b,c,d" ~~ rule { a \w ** [\,] } I kinda expect \w ** \, to match 'b,c,d', and the last evalbot line |
@coke - Status changed from 'new' to 'open' |
From @pmichaudNow fixed in 50e0e7e:
Assigning to moritz++ for spectest coverage. Pm |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S05-metasyntax/repeat.t commit c3a2cd0aced0bcb0960d03aeca8152e316011bfc [t/spec] test for RT #76792, ** and \w interact badly in regexes Inline Patchdiff --git a/t/spec/S05-metasyntax/repeat.t b/t/spec/S05-metasyntax/repeat.t
index a467b93..6f57666 100644
--- a/t/spec/S05-metasyntax/repeat.t
+++ b/t/spec/S05-metasyntax/repeat.t
@@ -14,7 +14,7 @@ be valid perl6.
# Note: single-quotes.t tests repetition on single quoted items in regexes.
-plan 21;
+plan 22;
# L<S05/Bracket rationalization/The general repetition specifier is now>
@@ -57,4 +57,7 @@ ok 'a, b, c' !~~ /:s^<alpha>**\,$/, 'with no spaces around **, no spaces can be
ok 'a, b, c' ~~ /:s^ <alpha> ** \, $/, 'with spaces around **, spaces can be matched';
ok 'a , b ,c' ~~ /:s^ <alpha> ** \, $/, 'same, but with leading spaces';
+# RT #76792
+ok ('a b,c,d' ~~ token { \w \s \w ** \, }), 'can combine ** with backslash character classes';
+
# vim: ft=perl6 |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#76792 (status was 'resolved')
Searchable as RT76792$
The text was updated successfully, but these errors were encountered: