Skip to content

Commit 2b0f93d

Browse files
committed
'use v6' was clobbering %*LANG
1 parent 9f91d53 commit 2b0f93d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

STD.pm6

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,7 @@ grammar P6 is STD {
14341434
<sym> :: <.ws>
14351435
[
14361436
|| <version> <?{ substr($<version>.Str,0,2) eq 'v6' }>
1437-
|| <version> <?{ substr($<version>.Str,0,2) eq 'v5' }>
1437+
|| <version> <?{ substr($<version>.Str,0,2) eq 'v5' }> [
14381438
:my %*LANG;
14391439
{
14401440
self.require_P5;
@@ -1446,6 +1446,7 @@ grammar P6 is STD {
14461446
}
14471447
<.ws> ';'
14481448
[ <statementlist> || <.panic: "Bad P5 code"> ]
1449+
]
14491450
|| <module_name>
14501451
{
14511452
$longname = $<module_name><longname>;

0 commit comments

Comments
 (0)