File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -213,11 +213,11 @@ grammar QRegex::P6Regex::Grammar is HLL::Grammar {
213
213
token quantifier :sym <** > {
214
214
<sym > <.normspace >? <backmod > <.normspace >?
215
215
[
216
- | <.decint > \s + '..' <.panic : "Spaces not allowed in bare range" >
217
- | <min = .decint >
216
+ | <.integer > \s + '..' <.panic : "Spaces not allowed in bare range" >
217
+ | <min = .integer >
218
218
[ '..'
219
219
[
220
- | <max = .decint > {
220
+ | <max = .integer > {
221
221
$/ . CURSOR. panic(" Negative numbers are not allowed as quantifiers" ) if $ < max > . Str < 0 ;
222
222
}
223
223
| $ < max > =['*' ]
Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ a**2 baabaa y two "a" characters
168
168
a**0..4 bbbbbbb y no "a" characters
169
169
a**2..4 bababab n not two consecutive "a" characters
170
170
a**2..4 baabbbb y two "a" characters
171
+ a**0b10..0b100 baabbbb y two "a" characters (using binary representation)
171
172
a**2..4 baaabbb y three "a" characters
172
173
a**2..4 baaaabb y four "a" characters
173
174
a**2..4 baaaaaa y four "a" characters
You can’t perform that action at this time.
0 commit comments