File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -3268,7 +3268,7 @@ grammar P6 is STD {
3268
3268
]
3269
3269
']' ['«' | <?>]
3270
3270
)
3271
- { $ op = $ < s >< op > ; }
3271
+ { $ op = $ < s >< op > ; @ * MEMOS [$¢ . pos ]< listop > = 1 ; }
3272
3272
3273
3273
<.can_meta ($ op , " reduce with" )>
3274
3274
@@ -4027,7 +4027,8 @@ grammar P6 is STD {
4027
4027
# | :dba('argument list') '.(' ~ ')' <semiarglist>
4028
4028
| :dba ('argument list' ) '(' ~ ')' <semiarglist >
4029
4029
| :dba ('argument list' ) <.unsp > '(' ~ ')' <semiarglist >
4030
- | { $ listopish = 1 } [<? before \s > <!{ $ istype }> <.ws > <!infixstopper > <arglist >]?
4030
+ | { $ listopish = 1 ; @ * MEMOS [$¢. pos ]<listop > = 1 ; }
4031
+ [<? before \s > <!{ $ istype }> <.ws > <!infixstopper > <arglist >]?
4031
4032
]
4032
4033
$ < invocant > = { $ * INVOCANT_IS }
4033
4034
@@ -6055,6 +6056,9 @@ method panic (Str $s) {
6055
6056
if self . lineof($ startpos ) != self . lineof($ endpos ) {
6056
6057
$ m ~~ s |Confused |Two terms in a row (previous line missing its semicolon? )| ;
6057
6058
}
6059
+ elsif @ * MEMOS [$ here . pos ]<listop > {
6060
+ $ m ~~ s |Confused |Two terms in a row (listop with args requires whitespace or parens)| ;
6061
+ }
6058
6062
elsif @ * MEMOS [$ here . pos - 1 ]<baremeth > {
6059
6063
$ m ~~ s |Confused |Two terms in a row (method call requires colon or parens to take arguments)| ;
6060
6064
}
You can’t perform that action at this time.
0 commit comments