Skip to content

Commit

Permalink
Workaround syntax highlighting bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstphrchvz committed Oct 24, 2020
1 parent e662436 commit 2c4c333
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ sub needs_Test
my $code = 0;
while (<TFILE>)
{
last if ($code = /^\s*(use|require)\s+Test\b/);
last if ($code = m/^\s*(use|require)\s+Test\b/);
}
close(TFILE);
warn "Skipping test $file needs 'Test.pm':$_" if $code;
Expand Down
2 changes: 1 addition & 1 deletion pTk/counts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ sub count
while (<C>)
{
next if (/^\s*$/);
$match = /$file/ if (/^#/);
$match = m/$file/ if (/^#/);
if ($match)
{
study;
Expand Down
2 changes: 1 addition & 1 deletion pTk/mkmethods
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ if (%{$table{WIDGET}} || %{$table{COMMAND}} || %{$table{IMAGE}})
{
while (<SRC>)
{
my ($kind,$Widget,$list) = /^(WIDGET|COMMAND|IMAGE)\(\("(\w+)",(("[^"]*",)*)NULL\)\)$/;
my ($kind,$Widget,$list) = m/^(WIDGET|COMMAND|IMAGE)\(\("(\w+)",(("[^"]*",)*)NULL\)\)$/;
if (defined $Widget)
{
if (!defined ${$table{$kind}}{$Widget})
Expand Down

0 comments on commit 2c4c333

Please sign in to comment.