- Timestamp:
- 08/07/08 19:46:35 (4 months ago)
- Location:
- src/perl6
- Files:
-
- 2 modified
-
Cursor.pmc (modified) (1 diff)
-
STD.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/perl6/Cursor.pmc
r21819 r21830 434 434 } 435 435 my $ch2 = substr($$buf,$P,5); 436 # $ch2 .= substr($$buf,$P+1,3) if $ch2 eq '['; 437 $ch2 =~ s/^(\[[\\<>«»]*..|[<>][<>]..| ..).*$/$1/s;436 # wish I could persuade p5 to parse this directly out of $$buf... 437 $ch2 =~ s/^(\[[\\<>«»]*..|[<>][<>]..|[ -~].|.).*$/$1/s; 438 438 439 439 -
src/perl6/STD.pm
r21819 r21830 1786 1786 :my $multiline = 0; 1787 1787 { $<firstpos> = self.pos; } 1788 [ 1788 [ <!before <stopper> > 1789 1789 [ 1790 | <?before <stopper> > :: <fail> 1791 | <starter> :: <nibbler> <stopper> 1790 || <starter> :: <nibbler> <stopper> 1792 1791 { 1793 1792 my $n = $<nibbler>[*-1]<nibbles>; … … 1797 1796 push @nibbles, @n; 1798 1797 } 1799 | <escape> :: {1798 || <escape> :: { 1800 1799 push @nibbles, $text, $<escape>; 1801 1800 $text = ''; 1802 1801 } 1803 | :: .1802 || :: . 1804 1803 {{ 1805 1804 my $ch = substr($$buf, $¢.pos-1, 1); … … 2538 2537 given $+zone { 2539 2538 when 'posopt' { 2540 $¢.panic("Can't use required parameter in optional zone");2539 $¢.panic("Can't put required parameter after optional parameters"); 2541 2540 } 2542 2541 when 'var' { 2543 $¢.panic("Can't use required parameter in variadic zone");2542 $¢.panic("Can't put required parameter after variadic parameters"); 2544 2543 } 2545 2544 } … … 2549 2548 when 'posreq' { $+zone = 'posopt' } 2550 2549 when 'var' { 2551 $¢.panic("Can't use optional positional parameter in variadic zone");2550 $¢.panic("Can't put optional positional parameter after slurpy parameters"); 2552 2551 } 2553 2552 }
