On Tue Oct 06 09:17:25 2015, jn...@jnthn.net wrote:
> On Wed Aug 05 07:37:00 2015, duff wrote:
> > m: '%E3%81%82' ~~ m:ignorecase/['%' (<[abcdef0123456789]> **
> > 2)]+/ && say $/[0];
> > <+camelia> rakudo-moar 0dcbba: OUTPUT«「E3」 「81」 「82」»
> > hoelzro: I guess something is broken with characte
On Thu Nov 05 07:05:37 2015, steve.mynott+bitc...@gmail.com wrote:
> 1. Original Behaviour under Niceville
>
> > say so "\r\n" ~~ /[";"|"\r\n"]/
> True
>
> 2. As of Nov 5
>
> % perl6 -v
> This is perl6 version 2015.10-177-gaf78ecc built on MoarVM version
> 2015.10-54-g1e4912d
>
> > say so "\r\n
On Fri May 29 17:05:32 2015, alex.jakime...@gmail.com wrote:
> This command:
> perl6 -e "say 'rule1 foo rule2 bar' ~~ /^ ( 'rule1' || 'rule2' )* %% (.+?)
> $/"
>
> Outputs this:
> 「rule1 foo rule2 bar」
> 0 => 「rule1」
> 1 => 「 」
> 1 => 「 f」
> 1 => 「 fo」
> 1 => 「 foo」
> 1 => 「 foo 」
> 0 => 「r
Tests were unfudged with commit
https://github.com/perl6/roast/commit/5c7ae5c3f5 and
https://github.com/perl6/roast/commit/53e1022caf.
I'm closing this ticket as 'resolved'.
I added a test (fudged 'todo') to S05-metasyntax/longest-alternative.t with
commit https://github.com/perl6/roast/commit/38931b20b4
Looks like this was fixed for Moar (because of jnthn++'s work for RT #125285).
$ perl6-m -e 'say "abcde" ~~ / (a | b | bc | cde)+»/'
「abcde」
0 => 「a」
0 => 「b」
0 => 「cde」
I added a test (fudged 'todo' for JVM) to S05-match/capturing-contexts.t with
commit https://github.com/perl6/roast/commit/
All these examples work now:
$ perl6 -e 'say "a" ~~ /@=(.)*/'
「a」
from => 「a」
$ perl6 -e 'say "a" ~~ /$=(.)*/'
「a」
from => 「a」
$ perl6 -e 'say "a" ~~ /@=(.)+/'
「a」
from => 「a」
$ perl6 -e 'say "a" ~~ /@=[.]+/'
「a」
from => 「a」
I added tests for the previously failing evaluations to
S05-capt
Matching only the final match is not desirable, in my opinion. It should match
the string traversed by all the matches in $0, including intervening
separators, if any. The problem is that ~$0 has spaces interpolated, which will
match only if the separators happen to be a single space, so there i