]> ruderich.org/simon Gitweb - blhc/blhc.git/commitdiff
Line continuation (\) allows no spaces after \.
authorSimon Ruderich <simon@ruderich.org>
Wed, 11 Apr 2012 14:24:42 +0000 (16:24 +0200)
committerSimon Ruderich <simon@ruderich.org>
Wed, 11 Apr 2012 14:54:13 +0000 (16:54 +0200)
Simplify the regex accordingly.

bin/blhc

index 25f2953aa2e3fc0d53866f347849e7ed20489e1c..92ab3b442b1beae820aad9eb3988e3cfbb125795 100755 (executable)
--- 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) {