From b4a627e700c5dcee515e1bd69cd06b8bd496d0b4 Mon Sep 17 00:00:00 2001 From: Steve Hancock Date: Sat, 17 Oct 2020 07:03:34 -0700 Subject: [PATCH] updated rule for welding nested anonymous subs --- bin/perltidy | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bin/perltidy b/bin/perltidy index 4c4d1c2c..2dcff4da 100755 --- a/bin/perltidy +++ b/bin/perltidy @@ -2351,10 +2351,12 @@ For example: When this flag is set perltidy makes a preliminary pass through the file and identifies all nested pairs of containers. To qualify as a nested pair, the -closing container symbols must be immediately adjacent. The opening symbols -must either be adjacent, or, if the outer opening symbol is an opening -paren, they may be separated by any single non-container symbol or something -that looks like a function evaluation. +closing container symbols must be immediately adjacent and the opening symbols +must either (1) be adjacent as in the above example, or (2) have an anonymous +sub declaration following the outer opening container symbol, or (3) have an +outer opening paren separated from the inner opening symbol by any single +non-container symbol or something that looks like a function evaluation, +as illustrated in the next examples. Any container symbol may serve as both the inner container of one pair and as the outer container of an adjacent pair. Consequently, any number of adjacent -- 2.39.5