gbranden pushed a commit to branch master
in repository groff.

commit 1aa75be9fc6e3c50f097942bc89b4c808c086731
Author: G. Branden Robinson <[email protected]>
AuthorDate: Thu Aug 27 01:55:13 2026 -0500

    pic(1): Clarify delimiter nesting behavior.
    
    This is okay:
    
    if x == 1 then { if y == 7 then { x = 3 } } else { x = 5 }
    
    So is this:
    
    if x == 1 then X if y == 7 then Y x = 3 Y X else X x = 5 X
    
    This isn't.
    
    if x == 1 then X if y == 7 then X x = 3 X X else X x = 5 X
---
 src/preproc/pic/pic.1.man | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/preproc/pic/pic.1.man b/src/preproc/pic/pic.1.man
index 9c9cec1e0..f6b943470 100644
--- a/src/preproc/pic/pic.1.man
+++ b/src/preproc/pic/pic.1.man
@@ -470,8 +470,6 @@ accept delimiters,
 shown in their synopses as braces
 .BR "{ }" .
 .
-Nesting of braces is supported.
-.
 Any other characters
 (except a space,
 tab,
@@ -480,6 +478,10 @@ or newline)
 may be used as alternative delimiters,
 in which case the members of a given pair must be identical.
 .
+Delimiters can nest;
+delimiter pairs other than braces must be distinct if nested.
+.
+.
 GNU
 .I pic \" GNU
 recognizes double-quoted strings within delimiters of either kind;

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

Reply via email to