Skip to content

Commit 151738c

Browse files
leonerdLeont
authored andcommitted
Permit a colon after a vstring, thus allowing an attrlist to follow a version declaration on a 'class' statement (Perl5 #20891)
1 parent 29eddf1 commit 151738c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vutil/vutil.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Perl_prescan_version(pTHX_ const char *s, bool strict,
211211
while (isSPACE(*d))
212212
d++;
213213

214-
if (!isDIGIT(*d) && (! (!*d || *d == ';' || *d == '{' || *d == '}') )) {
214+
if (!isDIGIT(*d) && (! (!*d || *d == ';' || *d == ':' || *d == '{' || *d == '}') )) {
215215
/* trailing non-numeric data */
216216
BADVERSION(s,errstr,"Invalid version format (non-numeric data)");
217217
}

0 commit comments

Comments
 (0)