groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 11/51: pic(1): Recast discussion of delimiters.


From: G. Branden Robinson
Subject: [groff] 11/51: pic(1): Recast discussion of delimiters.
Date: Sun, 11 Sep 2022 08:15:50 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit e62b83f7762d5d60ad4ccee82929f63060d99bba
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Sep 3 21:19:57 2022 -0500

    pic(1): Recast discussion of delimiters.
---
 src/preproc/pic/pic.1.man | 45 ++++++++++++++++++++-------------------------
 1 file changed, 20 insertions(+), 25 deletions(-)

diff --git a/src/preproc/pic/pic.1.man b/src/preproc/pic/pic.1.man
index 2230d3149..9efb12742 100644
--- a/src/preproc/pic/pic.1.man
+++ b/src/preproc/pic/pic.1.man
@@ -432,6 +432,26 @@ instead of
 .SS Commands
 .\" ====================================================================
 .
+Several commands new to GNU
+.I pic \" GNU
+accept delimiters,
+shown in their synopses as braces
+.BR "{ }" .
+.
+Nesting of braces is supported.
+.
+Any other characters
+(except a space,
+tab,
+or newline)
+.\" XXX even crazy control characters, ugh--src/preproc/pic/lex.cpp:1266
+may be used as alternative delimiters,
+in which case any given pair must be identical.
+.
+Strings are recognized within delimiters of either kind;
+they may contain the delimiter character or unbalanced braces.
+.
+.
 .TP
 \fBfor\fR \fIvariable\fR \fB=\fR \fIexpr1\fR \fBto\fR \fIexpr2\fR \
 [\fBby\fR [\fB*\fR]\,\fIexpr3\/\fR] \fBdo\fR \fIX\fR \fIbody\fR \fIX\fR
@@ -759,31 +779,6 @@ prints
 .RE
 .
 .
-.LP
-Arguments of the form
-.IP
-.I X anything X
-.LP
-are also allowed to be of the form
-.IP
-.BI {\  anything\  }
-.
-.
-.LP
-In this case
-.I anything
-can contain balanced occurrences of
-.B {
-and
-.BR } .
-Strings may contain
-.I X
-or imbalanced occurrences of
-.B {
-and
-.BR } .
-.
-.
 .\" ====================================================================
 .SS Expressions
 .\" ====================================================================



reply via email to

[Prev in Thread] Current Thread [Next in Thread]