iutils-raku/lib/IUtils/Regexes.rakumod

15 lines
339 B
Raku

unit module IUtils::Regexes;
my token comment-start { \- \- }
my token type {
'test' | 'bench'
}
my token flag { \@ \@ <type> }
my token name { <[\w \-]>+ }
my regex flagged-expression is export {
<&comment-start> \h* <flag> \h* <test-name=&name> \V* \v
[<&comment-start> \V* \v]*
<expression-name=&name> \h+ \: \V* \v
}