From: Simon Ruderich Date: Wed, 11 Apr 2012 14:24:42 +0000 (+0200) Subject: Line continuation (\) allows no spaces after \. X-Git-Tag: 0.01~10 X-Git-Url: https://ruderich.org/simon/gitweb/?p=blhc%2Fblhc.git;a=commitdiff_plain;h=c1062539346fc41efb4316cb04f2893ce954bb37 Line continuation (\) allows no spaces after \. Simplify the regex accordingly. --- diff --git a/bin/blhc b/bin/blhc index 25f2953..92ab3b4 100755 --- a/bin/blhc +++ b/bin/blhc @@ -643,7 +643,7 @@ foreach my $file (@ARGV) { $complete_line .= ' ' . $line; } # Line continuation, line ends with "\". - if ($line =~ /\\\s*$/) { + if ($line =~ /\\$/) { $continuation = 1; # Start line continuation. if (not defined $complete_line) {