Matcher Expression SyntaxΒΆ

A matcher expression consists of the matcher itself and optional controlling elements (modifiers), arranged in the following order (from right to left, square brackets indicate optional elements):

[lookaround] MATCHER_EXPR ['(' configuration ')'] [quantifier] [mod_optional] [':'export_name]

Note that whitespaces and newlines are allowed between the elements. Placing elements in a different order (for instance by placing mod_optional after the export_name) will trigger a syntax error.