Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[...]**0..1 to [...]? in deflongname
  • Loading branch information
FROGGS committed Oct 3, 2013
1 parent 7d0611b commit e0585e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/NQP/Actions.nqp
Expand Up @@ -41,8 +41,8 @@ class NQP::Actions is HLL::Actions {

method deflongname($/) {
make $<colonpair>
?? ~$<identifier> ~ ':' ~ $<colonpair>[0].ast.named
~ '<' ~ colonpair_str($<colonpair>[0].ast) ~ '>'
?? ~$<identifier> ~ ':' ~ $<colonpair>.ast.named
~ '<' ~ colonpair_str($<colonpair>.ast) ~ '>'
!! ~$/;
}

Expand Down
2 changes: 1 addition & 1 deletion src/NQP/Grammar.nqp
Expand Up @@ -41,7 +41,7 @@ grammar NQP::Grammar is HLL::Grammar {
token name { <identifier> ['::'<identifier>]* }

token deflongname {
<identifier> <colonpair>**0..1
<identifier> <colonpair>?
}

token ENDSTMT {
Expand Down

0 comments on commit e0585e5

Please sign in to comment.