diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2022-04-30 15:26:58 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2022-04-30 15:26:58 -0400 |
| commit | 4a2a71d4d832cc80d0af93df817da038de55c72f (patch) | |
| tree | 3b83e459cabae21ad3096b9ae6f9e8ff05e86659 | |
| parent | 206e1fa68fb921d0fd8c9d31ec59a9b7d0fc2a5d (diff) | |
Updated docs
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | bp.1 | 7 | ||||
| -rw-r--r-- | bp.1.md | 5 |
3 files changed, 13 insertions, 2 deletions
@@ -78,7 +78,8 @@ Pattern | Meaning `(pat1 @keep=pat2) => "@keep"` | Match `pat1` followed by `pat2` and replace it with the text of `pat2` `pat1~pat2` | `pat1` when `pat2` can be found within the result `pat1!~pat2` | `pat1` when `pat2` can not be found within the result -`name:pat2` | `name` is defined to mean `pat` +`name: pat2` | `name` is defined to mean `pat` +`name:: pat2` | `name` is defined to mean `pat` and matches have `name` attached to the result as metadata `# line comment` | A line comment See `man ./bp.1` for more details. @@ -1,4 +1,4 @@ -.\" Automatically generated by Pandoc 2.17.1.1 +.\" Automatically generated by Pandoc 2.18 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. @@ -342,6 +342,11 @@ 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[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. +.TP \f[B]#\f[R] \f[I]comment\f[R] A line comment .SH GRAMMAR FILES @@ -280,6 +280,11 @@ contain the word **"IGNORE"**) *name*`:` *pat* : Define *name* to mean *pat* (pattern definition) +*name*`::` *pat* +: Define *name* to be a special tagged pattern *pat*. This is the same as a +regular definition, except that a piece of metadata is attached to it +associating it with the specified name. + `#` *comment* : A line comment |
