Skip to content

Commit fab64fc

Browse files
committed
hash subscript should temp $*CURLEX
1 parent 3d13d53 commit fab64fc

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

STD.pm6

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3433,8 +3433,15 @@ grammar P6 is STD {
34333433
}
34343434
}
34353435

3436-
token postcircumfix:sym<{ }>
3437-
{ :dba('subscript') '{' ~ '}' <semilist> <O(|%methodcall)> <.curlycheck> }
3436+
token postcircumfix:sym<{ }> {
3437+
:temp $*CURLEX;
3438+
:dba('subscript')
3439+
<.newlex>
3440+
# <.finishlex> # XXX not sure if we need this
3441+
'{' ~ '}' <semilist> <O(|%methodcall)>
3442+
<.checkyada>
3443+
<.curlycheck>
3444+
}
34383445

34393446
token postcircumfix:sym«< >» {
34403447
:my $pos;

0 commit comments

Comments
 (0)