Skip to content

Commit

Permalink
Allow user-defined term nano for pre-6.e code (#5111)
Browse files Browse the repository at this point in the history
Fix a regression detected in #5109
  • Loading branch information
vrurg committed Nov 29, 2022
1 parent 83ffeca commit feb9732
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Perl6/Grammar.nqp
Expand Up @@ -3083,7 +3083,9 @@ grammar Perl6::Grammar is HLL::Grammar does STD {
token term:sym<time> { <sym> <.tok> }
token term:sym<nano> {
<?{ nqp::getcomp('Raku').language_revision ge 'e' }> <sym> <.tok>
<?{ (nqp::getcomp('Raku').language_revision ge 'e')
|| $*W.is_name(['&term:<nano>']) }>
<sym> <.tok>
}
token term:sym<empty_set> { "∅" <!before <.[ \( \\ ' \- ]> || \h* '=>'> }
Expand Down

0 comments on commit feb9732

Please sign in to comment.