diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-09-29 12:12:32 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-09-29 12:12:32 -0700 |
commit | b177dea74e5280ccaeeba4bd90fdf6d7967035f1 (patch) | |
tree | 5508c4bc6ee4457d6de5e3a3024c6e23600c1711 /txr.1 | |
parent | 4e33de0b5b4a32e9b9b44c2ac23f4d757eb6e92e (diff) | |
download | txr-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.1 | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |