Skip to content

Commit 4dc2553

Browse files
committed
allow: require VERSION
Found in Perl5's testsuite in t/comp/require.t.
1 parent e2a36d8 commit 4dc2553

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

STD_P5.pm6

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ rule p5package_declarator:package {
646646
rule p5package_declarator:require { # here because of declarational aspects
647647
<sym>
648648
[
649+
|| <version=p5versionish>
649650
|| <module_name=p5module_name> <EXPR>?
650651
|| <EXPR>
651652
]

0 commit comments

Comments
 (0)