aboutsummaryrefslogtreecommitdiff
path: root/bp.1
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2020-12-30 15:30:19 -0800
committerBruce Hill <bruce@bruce-hill.com>2020-12-30 15:30:19 -0800
commita07da1989d7ec515d4bb08051ea6940960577446 (patch)
tree6f506818554fc205ddcc46a3c9bfe6054ae9cea7 /bp.1
parent7d4bc36949cec8e5c791c352a264cd1dea4f8a1e (diff)
Simplified syntax for replacement: just =>, no need for {}
Diffstat (limited to 'bp.1')
-rw-r--r--bp.12
1 files changed, 1 insertions, 1 deletions
diff --git a/bp.1 b/bp.1
index 2af9967..1dfe7e0 100644
--- a/bp.1
+++ b/bp.1
@@ -168,7 +168,7 @@ E.g. \fB`"..`" % (`\\.)
.B @\fI<name>\fB=\fI<pat>\fR
\fBLet-\fI<name>\fB-equal-\fI<pat>\fR (named capture)
-.B {\fI<pat>\fB => "\fI<replacement>\fB"}
+.B \fI<pat>\fB => "\fI<replacement>\fB"
\fBReplace-\fI<pat>\fB-with-\fI<replacement>\fR. Note: \fI<replacement>\fR should
be a string, and it may contain references to captured values: \fB@0\fR
(the whole of \fI<pat>\fR), \fB@1\fR (the first capture in \fI<pat>\fR),