gbranden pushed a commit to branch master
in repository groff.

commit 31beb38f0ce7918da2728e610e418da6fa88ea00
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Aug 27 02:03:33 2026 -0500

    pic(1): Reorganize.
    
    `:=` is an operator, not a "command".
---
 src/preproc/pic/pic.1.man | 105 +++++++++++++++++++++++++---------------------
 1 file changed, 58 insertions(+), 47 deletions(-)

diff --git a/src/preproc/pic/pic.1.man b/src/preproc/pic/pic.1.man
index f6b943470..095b9e40c 100644
--- a/src/preproc/pic/pic.1.man
+++ b/src/preproc/pic/pic.1.man
@@ -461,6 +461,64 @@ instead of
 .
 .
 .\" ====================================================================
+.SS "Update of global variables"
+.\" ====================================================================
+.
+GNU
+.I pic \" GNU
+supports assignment to global variables from a local scope
+with a syntax extension.
+.
+.
+.TP
+.IB var \~:=\~ expr
+.RS
+Update an existing variable.
+.
+.I var
+must already be defined,
+and
+.I expr
+is assigned to
+.I var
+without creating a variable local to the current block.
+.
+(By contrast,
+.B =
+defines
+.I var
+in the current block if it is not already defined there,
+and then changes the value in the current block only.)
+.
+For example,
+.
+.RS
+.EX
+.B .PS
+.B x = 3
+.B y = 3
+.B [
+.B   x := 5
+.B   y = 5
+.B ]
+.B print x y
+.B .PE
+.EE
+.RE
+.
+writes
+.
+.RS
+.EX
+5 3
+.EE
+.RE
+.
+to the standard error stream.
+.RE
+.
+.
+.\" ====================================================================
 .SS Commands
 .\" ====================================================================
 .
@@ -767,53 +825,6 @@ validation of it is limited.
 is deprecated in favour of
 .BR sprintf .
 .
-.TP
-.IB var \~:=\~ expr
-.RS
-Update an existing variable.
-.
-.I var
-must already be defined,
-and
-.I expr
-is assigned to
-.I var
-without creating a variable local to the current block.
-.
-(By contrast,
-.B =
-defines
-.I var
-in the current block if it is not already defined there,
-and then changes the value in the current block only.)
-.
-For example,
-.
-.RS
-.EX
-.B .PS
-.B x = 3
-.B y = 3
-.B [
-.B   x := 5
-.B   y = 5
-.B ]
-.B print x " " y
-.B .PE
-.EE
-.RE
-.
-writes
-.
-.RS
-.EX
-5 3
-.EE
-.RE
-.
-to the standard error stream.
-.RE
-.
 .
 .\" ====================================================================
 .SS Expressions

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to