Changeset 21838 for src/perl6

Show
Ignore:
Timestamp:
08/07/08 22:53:55 (4 months ago)
Author:
lwall
Message:

[STD] more opdef tuneups

Location:
src/perl6
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • src/perl6/Cursor.pmc

    r21830 r21838  
    924924    my $name = $lang->text; 
    925925    my $WHAT = ref $lang; 
    926     if ($name =~ s/:/:sym/) { 
     926    if ($name =~ s/:(?=[«<({[])/:sym/) { 
    927927        my ($sym) = $name =~ /:sym(.*)/; 
    928928        if ($sym =~ s/^«(.*)»$/$1/) { 
  • src/perl6/STD.pm

    r21836 r21838  
    23732373 
    23742374rule regex_def { 
    2375     <longname>? 
     2375    :my $IN_DECL is context<rw> = 1; 
     2376    [ '&'<deflongname>? | <deflongname> ]? 
    23762377    [ [ ':'?'(' <signature> ')'] | <trait> ]* 
     2378    { $IN_DECL = 0; } 
    23772379    <regex_block> 
    23782380} 
    23792381 
    23802382rule macro_def { 
     2383    :my $IN_DECL is context<rw> = 1; 
    23812384    [ '&'<deflongname>? | <deflongname> ]? [ <multisig> | <trait> ]* 
     2385    <!!{ bless $¢, ref $PARSER; }> 
     2386    { $IN_DECL = 0; } 
    23822387    <block> 
    23832388}