]> git.donarmstrong.com Git - perltidy.git/commitdiff
fix problem causing unitialized values at VERSION stmt when -io used
authorSteve Hancock <perltidy@users.sourceforge.net>
Sat, 5 Sep 2020 22:18:19 +0000 (15:18 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Sat, 5 Sep 2020 22:18:19 +0000 (15:18 -0700)
lib/Perl/Tidy/Formatter.pm

index 5505e6927ca4ff8ff509304aface1a113aba5e6b..21b634c671ada52666fdc3bca2f52b5879e336ba 100644 (file)
@@ -3371,7 +3371,9 @@ sub respace_tokens {
         {
             $Saw_VERSION_in_this_file = 1;
             write_logfile_entry("passing VERSION line; -npvl deactivates\n");
-            $CODE_type = 'VER';
+
+            # This code type has lower priority than others
+            $CODE_type = 'VER' unless ($CODE_type);
         }
         return $CODE_type;
     }