Skip to content

Commit

Permalink
NQPQ's Grammar used the ** ',' syntax, which is now gone from QRegex,…
Browse files Browse the repository at this point in the history
… but it builds this in stage 1 too, using the old regex engine which doesn't do %. So, eliminate those two cases for something a little more verbose.
  • Loading branch information
jnthn committed May 17, 2012
1 parent 44e1c14 commit 7a76f20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NQPQ/Grammar.pm
Expand Up @@ -39,7 +39,7 @@ grammar NQP::Grammar is HLL::Grammar {

token identifier { <.ident> [ <[\-']> <.ident> ]* }

token name { <identifier> ** '::' }
token name { <identifier> ['::'<identifier>]* }

token deflongname {
<identifier> <colonpair>?
Expand Down Expand Up @@ -473,7 +473,7 @@ grammar NQP::Grammar is HLL::Grammar {

token signature {
[ <?{ $*INVOCANT_OK }> <.ws><invocant=.parameter><.ws> ':' ]?
[ [<.ws><parameter><.ws>] ** ',' ]?
[ [<.ws><parameter><.ws> [',' | <before \s* [')' | '{']>]]* ]?
}

token parameter {
Expand Down

0 comments on commit 7a76f20

Please sign in to comment.