Legend:
- Unmodified
- Added
- Removed
-
src/perl6/STD.pm
r21922 r21951 11 11 # random rule for debugging, please ignore 12 12 token foo { 13 'foo' 'bar''baz'13 'foo' <.ws> 'bar' <.ws> 'baz' 14 14 } 15 15 … … 436 436 token unv { 437 437 | \h+ {*} #= hwhite 438 | <?before '='> ^^ ::<.pod_comment> {*} #= pod439 | \h* '#' ::[440 | <?opener> ::438 | <?before '='> ^^ <.pod_comment> {*} #= pod 439 | \h* '#' [ 440 | <?opener> 441 441 [ <!after ^^ . > || <.panic: "Can't use embedded comments in column 1"> ] 442 442 <.quibble($¢.cursor_fresh( ::STD::Q ))> {*} #= embedded … … 1094 1094 ]* 1095 1095 ]? 1096 <.ws> 1096 1097 1097 1098 <trait>* 1098 <.ws> 1099 1100 <post_constraint>* 1101 1099 1102 [ 1100 1103 | '=' <.ws> <EXPR( ($<sigil> // '') eq '$' ?? item %item_assignment !! item %list_prefix )> … … 1110 1113 | <fulltypename>+ <multi_declarator> 1111 1114 | <multi_declarator> 1112 | <?before <[A..Z]> > <name> <.panic("Apparent type name " ~ $<name>.text ~ " is not declared yet")>1115 # | <?before <[A..Z]> > <name> <.panic("Apparent type name " ~ $<name>.text ~ " is not declared yet")> 1113 1116 ] 1114 1117 } … … 1512 1515 # Note: $() can also parse as contextualizer in an expression; should have same effect 1513 1516 | <sigil> <?before '<' | '('> <postcircumfix> {*} #= $() 1517 | <sigil> <?{ $+IN_DECL }> {*} #= anondecl 1514 1518 ] 1515 1519 ] … … 1809 1813 [ <!before <stopper> > 1810 1814 [ 1811 || <starter> ::<nibbler> <stopper>1815 || <starter> <nibbler> <stopper> 1812 1816 { 1813 1817 my $n = $<nibbler>[*-1]<nibbles>; … … 1817 1821 push @nibbles, @n; 1818 1822 } 1819 || <escape> ::{1823 || <escape> { 1820 1824 push @nibbles, $text, $<escape>; 1821 1825 $text = ''; 1822 1826 } 1823 || ::.1827 || . 1824 1828 {{ 1825 1829 my $ch = substr($$buf, $¢.pos-1, 1); … … 3475 3479 :my $ignorecase is context<rw> = $+ignorecase // 0; 3476 3480 :my $ignoreaccent is context<rw> = $+ignoreaccent // 0; 3477 < || | && & >?3481 [ \s* < || | && & > ]? 3478 3482 <EXPR> 3479 3483 } -
src/perl6/gimme5
r21926 r21951 961 961 my $min = 1_000_000_000; 962 962 963 s/^\ |\|//;963 s/^\s*\|\|//; 964 964 965 965 do { … … 1015 1015 my $name = $ALTNAME; 1016 1016 1017 s/^ \ | (?!\|) //x;1017 s/^ \s*\| (?!\|) //x; 1018 1018 1019 1019 do { … … 2227 2227 substr(<<"END",0,-1); 2228 2228 do { 2229 if (my (\$C) = ($outer) [0]) {2229 if (my (\$C) = ($outer)) { 2230 2230 $in; 2231 2231 } -
src/perl6/teststd
r21799 r21951 25 25 26 26 printf "Passed $success/$total, %6.2f%%\n", $success/$total * 100; 27 print "Failed tests:\n"; 28 for my $file (@failed) { 29 print "$file\n"; 27 if (@failed) { 28 print "Failed tests:\n"; 29 for my $file (@failed) { 30 print "$file\n"; 31 } 30 32 }
