summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-12-30 17:00:02 -0800
committerKaz Kylheku <kaz@kylheku.com>2022-12-30 17:00:02 -0800
commitc0089f9d62ac6cd1ce7067afb21d7ebee8b788e2 (patch)
tree86d4ab0ea4c44cbd12e578eeb6e173b2f87d2d79
parent4b29e91a09e09ce66060e2be30e1707943e49a85 (diff)
downloadtxr-c0089f9d62ac6cd1ce7067afb21d7ebee8b788e2.tar.gz
txr-c0089f9d62ac6cd1ce7067afb21d7ebee8b788e2.tar.bz2
txr-c0089f9d62ac6cd1ce7067afb21d7ebee8b788e2.zip
doc: clarify @(repeat) is @(collect :vars nil)
* txr.1: When @(repeat) is first mentioned near the top of the @(collect) documentation, say right away what exactly it means.
-rw-r--r--txr.112
1 files changed, 11 insertions, 1 deletions
diff --git a/txr.1 b/txr.1
index 7169d59a..c34aa421 100644
--- a/txr.1
+++ b/txr.1
@@ -5933,7 +5933,7 @@ The
.code repeat
symbol may be specified instead of
.codn collect ,
-which changes the meaning, see below:
+which changes the meaning:
.verb
@(repeat)
@@ -5941,6 +5941,16 @@ which changes the meaning, see below:
@(end)
.brev
+The
+.code @(repeat)
+syntax is equivalent to
+.code "@(collect :vars nil)"
+and doesn't take the
+.code :vars
+clause. It accepts other
+.code collect
+parameters.
+
The subquery is matched repeatedly, starting at the current line.
If it fails to match, it is tried starting at the subsequent line.
If it matches successfully, it is tried at the line following the