Skip to content

Commit 33fe530

Browse files
committed
Update obsolete proto-regex syntax in P6Regex
( If anything should be up-to-date on S05… )
1 parent 2b8f9e3 commit 33fe530

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/QRegex/P6Regex/Grammar.nqp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ grammar QRegex::P6Regex::Grammar is HLL::Grammar {
160160
]
161161
}
162162

163-
proto token quantifier { <...> }
163+
proto token quantifier {*}
164164
token quantifier:sym<*> { <sym> <backmod> }
165165
token quantifier:sym<+> { <sym> <backmod> }
166166
token quantifier:sym<?> { <sym> <backmod> }
@@ -188,7 +188,7 @@ grammar QRegex::P6Regex::Grammar is HLL::Grammar {
188188

189189
token backmod { ':'? [ '?' | '!' | <!before ':'> ] }
190190

191-
proto token metachar { <...> }
191+
proto token metachar {*}
192192
token metachar:sym<ws> { <.normspace> }
193193
token metachar:sym<[ ]> { '[' <nibbler> ']' }
194194
token metachar:sym<( )> { '(' <nibbler> ')' }
@@ -238,7 +238,7 @@ grammar QRegex::P6Regex::Grammar is HLL::Grammar {
238238
[ <.ws> '=' <.ws> <quantified_atom> ]**0..1
239239
}
240240

241-
proto token backslash { <...> }
241+
proto token backslash {*}
242242
token backslash:sym<s> { $<sym>=[<[dDnNsSwW]>] }
243243
token backslash:sym<b> { $<sym>=[<[bB]>] }
244244
token backslash:sym<e> { $<sym>=[<[eE]>] }
@@ -258,7 +258,7 @@ grammar QRegex::P6Regex::Grammar is HLL::Grammar {
258258
token backslash:sym<unsp> { [\s|'#'] <.panic: 'Unspace not allowed in regex'> }
259259
token backslash:sym<misc> { \W }
260260

261-
proto token cclass_backslash { <...> }
261+
proto token cclass_backslash {*}
262262
token cclass_backslash:sym<s> { $<sym>=[<[dDnNsSwW]>] }
263263
token cclass_backslash:sym<b> { $<sym>=[<[bB]>] }
264264
token cclass_backslash:sym<e> { $<sym>=[<[eE]>] }
@@ -272,7 +272,7 @@ grammar QRegex::P6Regex::Grammar is HLL::Grammar {
272272
token cclass_backslash:sym<c> { $<sym>=[<[cC]>] <charspec> }
273273
token cclass_backslash:sym<any> { . }
274274

275-
proto token assertion { <...> }
275+
proto token assertion {*}
276276

277277
token assertion:sym<?> { '?' [ <?before '>' > | <assertion> ] }
278278
token assertion:sym<!> { '!' [ <?before '>' > | <assertion> ] }
@@ -330,7 +330,7 @@ grammar QRegex::P6Regex::Grammar is HLL::Grammar {
330330
]
331331
}
332332

333-
proto token mod_ident { <...> }
333+
proto token mod_ident {*}
334334
token mod_ident:sym<ignorecase> { $<sym>=[i] 'gnorecase'? » }
335335
token mod_ident:sym<ratchet> { $<sym>=[r] 'atchet'? » }
336336
token mod_ident:sym<sigspace> { $<sym>=[s] 'igspace'? » }

0 commit comments

Comments
 (0)