From: Steve Hancock Date: Sat, 17 Oct 2020 14:03:34 +0000 (-0700) Subject: updated rule for welding nested anonymous subs X-Git-Tag: 20201001.03~73 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=b4a627e700c5dcee515e1bd69cd06b8bd496d0b4;p=perltidy.git updated rule for welding nested anonymous subs --- 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