]> git.donarmstrong.com Git - perltidy.git/commitdiff
minor change in update for git82. 20211029.06
authorSteve Hancock <perltidy@users.sourceforge.net>
Sun, 30 Jan 2022 04:22:30 +0000 (20:22 -0800)
committerSteve Hancock <perltidy@users.sourceforge.net>
Sun, 30 Jan 2022 04:22:30 +0000 (20:22 -0800)
lib/Perl/Tidy/Tokenizer.pm

index 1c624f8c572e47f3625cadb0aa3ff9fe613c52b6..37c06783b93b846a6db415db88c4d8dc5e5a9727 100644 (file)
@@ -6131,11 +6131,13 @@ sub decrease_nesting_depth {
         }
 
         # Fix part #2 for git82: use saved type for propagation of type 'Z'
-        # through type L-R braces.
+        # through type L-R braces.  Perl seems to allow ${bareword}
+        # as an indirect object, but nothing much more complex than that.
         ( $statement_type, my $saved_type, my $saved_token ) =
           @{ $nested_statement_type[$aa][ $current_depth[$aa] ] };
         if (   $aa == BRACE
             && $saved_type eq 'Z'
+            && $last_nonblank_type eq 'w'
             && $brace_structural_type[$brace_depth] eq 'L' )
         {
             $last_nonblank_type = $saved_type;