Skip to content

Commit adada5f

Browse files
committed
modernize ** to +%
1 parent 840c157 commit adada5f

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

STD.pm6

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ token charname {
420420
] || <.sorry: "Unrecognized character name"> .*?<?terminator>
421421
}
422422

423-
token charnames { \s* [<charname><.ws>] ** [','\s*] }
423+
token charnames { \s* [<charname><.ws>] +% [','\s*] }
424424

425425
token charspec {
426426
[
@@ -755,25 +755,25 @@ token embeddedblock {
755755
[ '}' || <.panic: "Unable to parse statement list; couldn't find right brace"> ]
756756
}
757757

758-
token binints { [<.ws><binint><.ws>] ** ',' }
758+
token binints { [<.ws><binint><.ws>] +% ',' }
759759

760760
token binint {
761761
<[ 0..1 ]>+ [ _ <[ 0..1 ]>+ ]*
762762
}
763763

764-
token octints { [<.ws><octint><.ws>] ** ',' }
764+
token octints { [<.ws><octint><.ws>] +% ',' }
765765

766766
token octint {
767767
<[ 0..7 ]>+ [ _ <[ 0..7 ]>+ ]*
768768
}
769769

770-
token hexints { [<.ws><hexint><.ws>] ** ',' }
770+
token hexints { [<.ws><hexint><.ws>] +% ',' }
771771

772772
token hexint {
773773
<[ 0..9 a..f A..F ]>+ [ _ <[ 0..9 a..f A..F ]>+ ]*
774774
}
775775

776-
token decints { [<.ws><decint><.ws>] ** ',' }
776+
token decints { [<.ws><decint><.ws>] +% ',' }
777777

778778
token decint {
779779
\d+ [ _ \d+ ]*
@@ -1399,7 +1399,7 @@ grammar P6 is STD {
13991399
$longname = $<module_name>[*-1]<longname>;
14001400
.do_need($longname<name>);
14011401
}
1402-
] ** ','
1402+
] +% ','
14031403
}
14041404

14051405
token statement_control:import {
@@ -1590,7 +1590,7 @@ grammar P6 is STD {
15901590
}
15911591

15921592
token version:sym<v> {
1593-
'v' <?before \d> :: <vnum> ** '.' '+'?
1593+
'v' <?before \d> :: <vnum> +% '.' '+'?
15941594
}
15951595

15961596
###############
@@ -1858,7 +1858,7 @@ grammar P6 is STD {
18581858
[
18591859
':'?'(' ~ ')' <signature(++$signum)>
18601860
]
1861-
** '|'
1861+
+% '|'
18621862
}
18631863

18641864
method checkyada {
@@ -2770,7 +2770,7 @@ grammar P6 is STD {
27702770
| [
27712771
| <?before '-->' | ')' | ']' | '{' | ':'\s | ';;' >
27722772
| [ <parameter> || <.panic: "Malformed parameter"> ]
2773-
] ** <param_sep>
2773+
] +% <param_sep>
27742774
]
27752775
<.ws>
27762776
{ $*IN_DECL = ''; }
@@ -3489,7 +3489,7 @@ grammar P6 is STD {
34893489
}
34903490

34913491
token semiarglist {
3492-
<arglist> ** ';'
3492+
<arglist> +% ';'
34933493
<.ws>
34943494
}
34953495

@@ -5137,18 +5137,18 @@ grammar Regex is STD {
51375137
::
51385138
<.normspace>?
51395139
<sign>
5140-
<cclass_union> ** [$<op>=[ '|' | '^' ]]
5140+
<cclass_union> +% [$<op>=[ '|' | '^' ]]
51415141
<.SIGOK>
51425142
}
51435143

51445144
token cclass_union {
51455145
<.normspace>?
5146-
<cclass_add> ** [$<op>=[ '&' ]]
5146+
<cclass_add> +% [$<op>=[ '&' ]]
51475147
}
51485148

51495149
token cclass_add {
51505150
<.normspace>?
5151-
<cclass_elem> ** [$<op>=[ '+' | '-' ]<.normspace>?]
5151+
<cclass_elem> +% [$<op>=[ '+' | '-' ]<.normspace>?]
51525152
}
51535153

51545154
token cclass_elem:name {

0 commit comments

Comments
 (0)