From c0089f9d62ac6cd1ce7067afb21d7ebee8b788e2 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Fri, 30 Dec 2022 17:00:02 -0800 Subject: 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. --- txr.1 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3