summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-09-29 12:12:32 -0700
committerKaz Kylheku <kaz@kylheku.com>2011-09-29 12:12:32 -0700
commitb177dea74e5280ccaeeba4bd90fdf6d7967035f1 (patch)
tree5508c4bc6ee4457d6de5e3a3024c6e23600c1711 /txr.1
parent4e33de0b5b4a32e9b9b44c2ac23f4d757eb6e92e (diff)
downloadtxr-b177dea74e5280ccaeeba4bd90fdf6d7967035f1.tar.gz
txr-b177dea74e5280ccaeeba4bd90fdf6d7967035f1.tar.bz2
txr-b177dea74e5280ccaeeba4bd90fdf6d7967035f1.zip
* match.c (chars_k): New variable.
(match_line): Keyword arguments in coll implemented. (match_init): chars_k variable initialized. * parser.l (COLL): Lexical syntax changed to allow for argument material. * parser.y (elem): Coll syntax rewritten for arguments. * txr.1: Updated.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.19
1 files changed, 9 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 1caadf71..0a5bcad1 100644
--- a/txr.1
+++ b/txr.1
@@ -1643,6 +1643,15 @@ Note that the @(end) is followed by a semicolon. That's because
when the @(until) clause meets a match, the matching material
is not consumed.
+.SS Coll Keyword Parameters
+
+The @(coll) directive takes most of the same parameters as @(collect).
+See the section Collect Keyword Parameters above.
+So for instance @(coll :gap 0) means that the collects must be
+consecutive, and @(coll :times 2) means that (at most) two matches
+will be collected. The :lines keyword does not exist, but there is
+an analogous :chars keyword.
+
.SS The Flatten Directive.
The flatten directive can be used to convert variables to one dimensional