diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2022-05-14 15:18:54 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2022-05-14 15:18:54 -0400 |
| commit | 2988080c3277bddfa2a2c4ec7768e748e2d8c20b (patch) | |
| tree | 53cf926f0a0ddeee977c9b443cf943e7f095f3db /bp.1 | |
| parent | d62fd1eb968cebe75acdbcc43ccd33b24d6f163d (diff) | |
Added :tag
Diffstat (limited to 'bp.1')
| -rw-r--r-- | bp.1 | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -355,10 +355,13 @@ not contain the word \f[B]\[lq]IGNORE\[rq]\f[R]) \f[I]name\f[R]\f[B]:\f[R] \f[I]pat\f[R] Define \f[I]name\f[R] to mean \f[I]pat\f[R] (pattern definition) .TP +\f[B]:\f[R]\f[I]name\f[R] \f[I]pat\f[R] +Match \f[I]pat\f[R] and tag it with the given name as metadata. +.TP \f[I]name\f[R]\f[B]::\f[R] \f[I]pat\f[R] -Define \f[I]name\f[R] to be a special tagged pattern \f[I]pat\f[R]. -This is the same as a regular definition, except that a piece of -metadata is attached to it associating it with the specified name. +Syntactic sugar for \f[I]name\f[R]\f[B]::\f[R] \f[B]:\f[R]\f[I]name\f[R] +\f[I]pat\f[R] (define a pattern that also attaches a metadata tag of the +same name) .TP \f[B]#\f[R] \f[I]comment\f[R] A line comment |
