]> git.donarmstrong.com Git - perltidy.git/commitdiff
Fix error parsing '$^' with newline between '$' and '^' (issue c069)
authorSteve Hancock <perltidy@users.sourceforge.net>
Tue, 7 Sep 2021 23:45:09 +0000 (16:45 -0700)
committerSteve Hancock <perltidy@users.sourceforge.net>
Tue, 7 Sep 2021 23:45:09 +0000 (16:45 -0700)
lib/Perl/Tidy/Tokenizer.pm

index 71456b8b6c610da56746a22d276ee2ed71a8a0eb..f0c7164877ee823f0eca7c38ed45b43828d92024 100644 (file)
@@ -7168,6 +7168,7 @@ sub scan_identifier_do {
                 # check for some special variables like $^ $^W
                 if ( $identifier =~ /^[\$\*\@\%]$/ ) {
                     $identifier .= $tok;
+                    $type = 'i';
 
                     # There may be one more character, not a space, after the ^
                     my $next1 = $rtokens->[ $i + 1 ];