From c7ecdd826e92b8cfe5a50e1730633f39f6e2205e Mon Sep 17 00:00:00 2001 From: Elizabeth Mattijsen Date: Sat, 10 Jun 2023 19:43:57 +0200 Subject: [PATCH] Ununderscore colonpair_variable --- src/Raku/Actions.nqp | 2 +- src/Raku/Grammar.nqp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Raku/Actions.nqp b/src/Raku/Actions.nqp index 300aef00efa..7cf2c6189e5 100644 --- a/src/Raku/Actions.nqp +++ b/src/Raku/Actions.nqp @@ -1401,7 +1401,7 @@ class Raku::Actions is HLL::Actions does Raku::CommonActions { self.attach: $/, $ ?? $.ast !! self.Nil } - method colonpair_variable($/) { + method colonpair-variable($/) { if $ { self.attach: $/, self.r('Var', 'NamedCapture').new: self.r('QuotedString').new: diff --git a/src/Raku/Grammar.nqp b/src/Raku/Grammar.nqp index 21ee67e2b40..b4061b22371 100644 --- a/src/Raku/Grammar.nqp +++ b/src/Raku/Grammar.nqp @@ -1948,7 +1948,7 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common { | :dba('signature') '(' ~ ')' | { $*key := ""; } - | + | { $*key := $.Str; self.check-variable($); } ] } @@ -1981,7 +1981,7 @@ grammar Raku::Grammar is HLL::Grammar does Raku::Common { ] } - token colonpair_variable { + token colonpair-variable { {} [ | ?