Skip to content

Commit e8e82b9

Browse files
committed
allow other sigils for hard ref than $
1 parent 47c76b3 commit e8e82b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

STD.pm6

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2410,13 +2410,13 @@ grammar P6 is STD {
24102410

24112411
token desigilname {
24122412
[
2413-
| <?before '$' >
2413+
| <?before <sigil> <sigil> > <VAR=variable>
2414+
| <?before <sigil> >
24142415
[ <?{ $*IN_DECL }> <.panic: "Cannot declare an indirect variable name"> ]?
24152416
<variable> {
24162417
$*VAR = $<variable>;
2417-
self.check_variable($*VAR) if substr($*VAR,1,1) ne '$';
2418+
self.check_variable($*VAR);
24182419
}
2419-
| <?before <[\@\%\&]> <sigil>* \w > <.panic: "Invalid hard reference syntax">
24202420
| <longname>
24212421
]
24222422
}
@@ -4800,7 +4800,7 @@ grammar Regex is STD {
48004800
proto token regex_infix {*}
48014801

48024802
# no such thing as ignored whitespace in a normal regex
4803-
token ws { <?> }
4803+
token ws { { note 'HUH?' } <?> }
48044804

48054805
token normspace {
48064806
<?before \s | '#'> [ :lang(%*LANG<MAIN>) <.ws> ]

0 commit comments

Comments
 (0)