patterns
Description
patterns
— the named patterns are to appear in .sc
file after this tag. You can use them within any project file.
tip
Sometimes it is more convenient to put all the named patterns in a separate
.sc
file.Value type
- none
Parameters
- none
Nested data
- named patterns — specific nested data type
Syntax
- Tag
patterns
corresponds to the specific nested data type — list of named patterns. The tag has the following structure:
patterns:
$<pattern name> = (pattern body | multiline body)
$<pattern name> = (pattern body) || converter=dateConverter
- Every nested element is interpreted as a setting of a new named pattern.
- The multiline string value with an optional string attribute converter is set after character
=
. - Character
$
is used when the named pattern is referred and announced.
How to use
patterns:
$Start = $regexp</start>
$CatchAll = *
$Yes = (yes/certainly)
$No = (no/don’t want to)
patterns:
$hello = (salutations|hello|nice to meet you*|hi|good (day|evening))