Skip to content

Commit 082981d

Browse files
committed
R and S metaops should include subop in $<sym>
1 parent a0bcfb1 commit 082981d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

STD.pm6

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3384,7 +3384,7 @@ grammar P6 is STD {
33843384

33853385
|| <.can_meta($<infixish>, "negate")>
33863386
<?{ $<infixish><O><iffy> }>
3387-
$<O> = {$<infixish><O>}
3387+
{ $<O> = $<infixish><O>; $<sym> ~= $<infixish>.Str }
33883388

33893389
|| <.panic("Cannot negate " ~ $<infixish>.Str ~ " because " ~ $<infixish><O><dba> ~ " operators are not iffy enough")>
33903390
]
@@ -3393,20 +3393,20 @@ grammar P6 is STD {
33933393
token infix_prefix_meta_operator:sym<R> {
33943394
<sym> {} <infixish('R')>
33953395
<.can_meta($<infixish>, "reverse the args of")>
3396-
$<O> = {$<infixish><O>}
3396+
{ $<O> = $<infixish><O>; $<sym> ~= $<infixish>.Str }
33973397
}
33983398

33993399
token infix_prefix_meta_operator:sym<S> {
34003400
<sym> {} <infixish('S')>
34013401
<.can_meta($<infixish>, "sequence the args of")>
3402-
$<O> = {$<infixish><O>}
3402+
{ $<O> = $<infixish><O>; $<sym> ~= $<infixish>.Str }
34033403
}
34043404

34053405
token infix_prefix_meta_operator:sym<X> {
34063406
<sym> <?before \S> {}
34073407
[ <infixish('X')>
34083408
<.can_meta($<infixish>[0], "cross with")>
3409-
<?{ $<O> = $<infixish>[0]<O>; $<O><prec>:delete; $<sym> ~= $<infixish>[0].Str }>
3409+
{ $<O> = $<infixish>[0]<O>; $<O><prec>:delete; $<sym> ~= $<infixish>[0].Str }
34103410
]?
34113411
<O(|%list_infix, self.Opairs)>
34123412
}
@@ -3415,7 +3415,7 @@ grammar P6 is STD {
34153415
<sym> <?before \S> {}
34163416
[ <infixish('Z')>
34173417
<.can_meta($<infixish>[0], "zip with")>
3418-
<?{ $<O> = $<infixish>[0]<O>; $<O><prec>:delete; $<sym> ~= $<infixish>[0].Str }>
3418+
{ $<O> = $<infixish>[0]<O>; $<O><prec>:delete; $<sym> ~= $<infixish>[0].Str }
34193419
]?
34203420
<O(|%list_infix, self.Opairs)>
34213421
}

0 commit comments

Comments
 (0)