Legend:
- Unmodified
- Added
- Removed
-
src/perl6/STD.pm
r22506 r22508 1901 1901 :my $buf = self.orig; 1902 1902 :my $multiline = 0; 1903 :my $nibble; 1903 1904 { $<firstpos> = self.pos; } 1904 1905 [ <!before <stopper> > … … 1913 1914 } 1914 1915 || <escape> { 1915 push @nibbles, $text, $<escape> ;1916 push @nibbles, $text, $<escape>[*-1]; 1916 1917 $text = ''; 1917 1918 } … … 1930 1931 push @nibbles, $text; $<nibbles> = [@nibbles]; 1931 1932 $<lastpos> = $¢.pos; 1933 $/.:delete<nibbler>; 1934 $/.:delete<escape>; 1932 1935 $COMPILING::LAST_NIBBLE = $¢; 1933 1936 $COMPILING::LAST_NIBBLE_MULTILINE = $¢ if $multiline; … … 2359 2362 2360 2363 # in single quotes, keep backslash on random character by default 2361 token backslash:misc { {} (.) { $<text> = "\\" ~ $0 ; } }2364 token backslash:misc { {} (.) { $<text> = "\\" ~ $0.text; } } 2362 2365 2363 2366 # begin tweaks (DO NOT ERASE) -
src/perl6/viv
r22498 r22508 46 46 my $zyg = []; 47 47 for my $z (@$v) { 48 if (ref $z eq 'HASH' and exists $z->{''}) { 49 push @$zyg, $z->{''}; 48 if (ref $z) { 49 if (ref $z eq 'ARRAY') { 50 warn "ARRAY"; 51 push @$zyg, $z; 52 } 53 elsif (exists $z->{''}) { 54 push @$zyg, $z->{''}; 55 } 50 56 } 51 57 else { 52 58 push @$zyg, $z; 53 59 } 54 push @$zyg, $z;55 60 } 56 61 $r{$k} = $zyg;
