Skip to content

Commit cb4f525

Browse files
committed
Enable use of $¢ in nqp
I'm personally still amazed it was this simple to do :) .
1 parent ebfd308 commit cb4f525

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/NQP/Actions.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ class NQP::Actions is HLL::Actions {
571571
else {
572572
my $name := ~@name.pop;
573573
my int $is_lex := 0;
574-
if $*IN_DECL eq 'variable' || $name eq '$_' || $name eq '$/'
574+
if $*IN_DECL eq 'variable' || $name eq '$_' || $name eq '$/' || $name eq ''
575575
|| $name eq '$!' || $<twigil> eq '?' || ($is_lex := $*W.is_lexical($name)) {
576576
$ast := QAST::Var.new( :name($name),
577577
:scope($name eq '$?CLASS' ?? 'typevar' !! 'lexical') );

src/NQP/Grammar.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ grammar NQP::Grammar is HLL::Grammar {
338338
| <sigil> <twigil>? <desigilname=.name>
339339
| <sigil> <?[<]> <postcircumfix>
340340
| <sigil> '(' ~ ')' <semilist>
341-
| $<sigil>=['$'] $<desigilname>=[<[/_!]>]
341+
| $<sigil>=['$'] $<desigilname>=[<[/_!¢]>]
342342
}
343343

344344
token sigil { <[$@%&]> }

0 commit comments

Comments
 (0)