aboutsummaryrefslogtreecommitdiff
path: root/bp.1
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2022-05-14 22:43:13 -0400
committerBruce Hill <bruce@bruce-hill.com>2022-05-14 22:43:13 -0400
commit23c64e386c7ea1d0054c37f945a6467dccdf2980 (patch)
treeda7b8d914f999f19188a1cda15d0cf43b5d8570a /bp.1
parent5fd2f6b8c594c6cbc1313efbcc28b53c15ba85d5 (diff)
Changed how tags work, changed Lua API for handling match captures
Diffstat (limited to 'bp.1')
-rw-r--r--bp.18
1 files changed, 4 insertions, 4 deletions
diff --git a/bp.1 b/bp.1
index 635f7fd..3e585a4 100644
--- a/bp.1
+++ b/bp.1
@@ -355,13 +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]
+\f[B]\[at]:\f[R]\f[I]name\f[R] \f[B]=\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]
-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)
+Syntactic sugar for \f[I]name\f[R]\f[B]:\f[R]
+\f[B]\[at]:\f[R]\f[I]name\f[R]\f[B]=\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