A MatcherPattern which inherits from an already existing matcher pattern by name reference in inherit.

interface InheritingMatcherPattern {
    attributes?: AttributesType;
    classes?: boolean;
    inherit?: string;
    name?: string | RegExp;
}

Hierarchy (view full)

Properties

attributes?: AttributesType
classes?: boolean

While MatcherPattern allows, for example, defining a regular expression for matching classes, we are only interested in allowing or disallowing classes in general in the context of General RichText Support (GRS).

inherit?: string

Name of the pattern to inherit. For existing patterns with regular expressions, this string will be matched towards this regular expression.

If unset, this pattern is assumed to be a new pattern without any inheritance.

name?: string | RegExp