We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d0611b commit e0585e5Copy full SHA for e0585e5
src/NQP/Actions.nqp
@@ -41,8 +41,8 @@ class NQP::Actions is HLL::Actions {
41
42
method deflongname($/) {
43
make $<colonpair>
44
- ?? ~$<identifier> ~ ':' ~ $<colonpair>[0].ast.named
45
- ~ '<' ~ colonpair_str($<colonpair>[0].ast) ~ '>'
+ ?? ~$<identifier> ~ ':' ~ $<colonpair>.ast.named
+ ~ '<' ~ colonpair_str($<colonpair>.ast) ~ '>'
46
!! ~$/;
47
}
48
src/NQP/Grammar.nqp
@@ -41,7 +41,7 @@ grammar NQP::Grammar is HLL::Grammar {
token name { <identifier> ['::'<identifier>]* }
token deflongname {
- <identifier> <colonpair>**0..1
+ <identifier> <colonpair>?
token ENDSTMT {
0 commit comments