class X::Syntax::Regex::Adverb does X::Syntax { }

Syntax error thrown when an unrecognized or illegal regex adverb is encountered.

For example


dies with

Adverb g not allowed on rx 

because :g belongs to a match operation, not a regex itself.


method adverb§

method adverb(--> Str:D)

Returns the illegally used adverb

method construct§

method construct(--> Str:D)

Returns the name of the construct that adverb was used on (m, ms, rx, s, ss).


Type relations for X::Syntax::Regex::Adverb
raku-type-graph X::Syntax::Regex::Adverb X::Syntax::Regex::Adverb Exception Exception X::Syntax::Regex::Adverb->Exception X::Syntax X::Syntax X::Syntax::Regex::Adverb->X::Syntax Mu Mu Any Any Any->Mu Exception->Any X::Comp X::Comp X::Comp->Exception X::Syntax->Exception X::Syntax->X::Comp

Expand chart above