Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
complain about negatives in range quantifiers.
  • Loading branch information
timo committed Feb 28, 2013
1 parent 3dd264f commit 63b55a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/QRegex/P6Regex/Grammar.nqp
Expand Up @@ -172,9 +172,11 @@ grammar QRegex::P6Regex::Grammar is HLL::Grammar {
$<max>=[
|| \d+
|| '*'
|| \-\d+ <.panic: "Negative numbers are not allowed as range quantifier endpoint">
|| <.panic: "Only integers or '*' allowed as range quantifier endpoint">
]
]?
|| \-\d+ <.panic: "Negative numbers are not allowed as range quantifier endpoint">
]
}

Expand Down

0 comments on commit 63b55a0

Please sign in to comment.