File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -789,9 +789,9 @@ grammar NQP::Grammar is HLL::Grammar {
789
789
790
790
token prefix :sym <return > { <sym > \s <O (' %list_prefix' )> { $ * RETURN_USED := 1 } }
791
791
token prefix :sym <make > { <sym > \s <O (' %list_prefix' )> }
792
- token term :sym <last > { <sym > <! before < identifier > > { $ * CONTROL_USED := 1 } }
793
- token term :sym <next > { <sym > <! before < identifier > > { $ * CONTROL_USED := 1 } }
794
- token term :sym <redo > { <sym > <! before < identifier > > { $ * CONTROL_USED := 1 } }
792
+ token term :sym <last > { <sym > <!identifier > { $ * CONTROL_USED := 1 } }
793
+ token term :sym <next > { <sym > <!identifier > { $ * CONTROL_USED := 1 } }
794
+ token term :sym <redo > { <sym > <!identifier > { $ * CONTROL_USED := 1 } }
795
795
796
796
method smartmatch ($/ ) {
797
797
# swap rhs into invocant position
@@ -820,17 +820,17 @@ grammar NQP::Regex is QRegex::P6Regex::Grammar {
820
820
<?[ { ] > <codeblock >
821
821
}
822
822
823
- token assertion :sym <? > { '?' [ <? before '>' > | <! before '{' > <assertion > ] }
824
- token assertion :sym <! > { '!' [ <? before '>' > | <! before '{' > <assertion > ] }
823
+ token assertion :sym <? > { '?' [ <?[ > ] > | <![ { ] > <assertion > ] }
824
+ token assertion :sym <! > { '!' [ <?[ > ] > | <![ { ] > <assertion > ] }
825
825
826
826
token assertion :sym <?{ } > {
827
- $ < zw > =[ <[ ?! ] > <? before '{' > ] <codeblock >
827
+ $ < zw > =[ <[ ?! ] > <?[ { ] > ] <codeblock >
828
828
}
829
829
830
830
token assertion :sym <name > {
831
831
<longname = .identifier >
832
832
[
833
- | <? before '>' >
833
+ | <?[ > ] >
834
834
| '=' <assertion >
835
835
| ':' <arglist >
836
836
| '(' <arglist = .LANG (' MAIN' ,' arglist' )> ')'
You can’t perform that action at this time.
0 commit comments