Skip to content

Commit e0585e5

Browse files
committed
[...]**0..1 to [...]? in deflongname
1 parent 7d0611b commit e0585e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/NQP/Actions.nqp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ class NQP::Actions is HLL::Actions {
4141

4242
method deflongname($/) {
4343
make $<colonpair>
44-
?? ~$<identifier> ~ ':' ~ $<colonpair>[0].ast.named
45-
~ '<' ~ colonpair_str($<colonpair>[0].ast) ~ '>'
44+
?? ~$<identifier> ~ ':' ~ $<colonpair>.ast.named
45+
~ '<' ~ colonpair_str($<colonpair>.ast) ~ '>'
4646
!! ~$/;
4747
}
4848

src/NQP/Grammar.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ grammar NQP::Grammar is HLL::Grammar {
4141
token name { <identifier> ['::'<identifier>]* }
4242

4343
token deflongname {
44-
<identifier> <colonpair>**0..1
44+
<identifier> <colonpair>?
4545
}
4646

4747
token ENDSTMT {

0 commit comments

Comments
 (0)