]> git.donarmstrong.com Git - perltidy.git/commitdiff
clarify error regarding missed empty here target
authorSteve Hancock <perltidy@users.sourceforge.net>
Sat, 11 Sep 2021 00:19:38 +0000 (17:19 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Sat, 11 Sep 2021 00:19:38 +0000 (17:19 -0700)
lib/Perl/Tidy/Tokenizer.pm

index 7c22ba15c35496f9b13ee15bfa8cc4bdce1fc182..b6fb1c8e1df9c178ac09bf6be1ea548cc73e6bb0 100644 (file)
@@ -605,9 +605,10 @@ EOM
             );
         }
         else {
-            warning(
-"hit EOF in here document starting at line $started_looking_for_here_target_at with empty target string\n"
-            );
+            warning(<<EOM);
+Hit EOF in here document starting at line $started_looking_for_here_target_at with empty target string.
+  (Perl will match to the end of file but this may not be intended).
+EOM
         }
         my $nearly_matched_here_target_at =
           $tokenizer_self->[_nearly_matched_here_target_at_];