Skip to content

Commit

Permalink
Merge pull request #5020 from rakudo/lizmat-v-check
Browse files Browse the repository at this point in the history
Don't blindly make a Version object for vN
  • Loading branch information
vrurg committed Aug 16, 2022
2 parents 2c1e1bf + 7ddb90c commit 6c948e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Perl6/Grammar.nqp
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,10 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
}
token version {
<?before v\d+\w*> 'v' $<vstr>=[<vnum>+ % '.' '+'?]
<?before v\d+\w*
[ '.' \d
|| <!{ $*W.is_lexical(~$/) }> ]>
'v' $<vstr>=[<vnum>+ % '.' '+'?]
<!before '-'|\'> # cheat because of LTM fail
}
Expand Down

0 comments on commit 6c948e0

Please sign in to comment.