t/chainlint.sed: drop extra spaces from regex character class
authorEric Sunshine <sunshine@sunshineco.com>
Tue, 31 Jul 2018 05:03:20 +0000 (01:03 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 31 Jul 2018 18:24:14 +0000 (11:24 -0700)
This character class, like many others in this script, matches
horizontal whitespace consisting of spaces and tabs, however, a few
extra, entirely harmless, spaces somehow slipped into the expression.
Removing them is purely a cosmetic fix.

While at it, re-indent three lines with a single TAB each which were
incorrectly indented with six spaces. Also, a purely cosmetic fix.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/chainlint.sed
index a0de8a38823a1838c819847c567b6db60bf5212c..5f0882cb3810114dfdbbe244799af0c676bf7126 100644 (file)
@@ -71,9 +71,9 @@
 # incomplete line -- slurp up next line
 :squash
 /\\$/ {
-      N
-      s/\\\n//
-      bsquash
+       N
+       s/\\\n//
+       bsquash
 }
 
 # here-doc -- swallow it to avoid false hits within its body (but keep the
@@ -199,7 +199,7 @@ s/.*\n//
 # "$(...)" -- command substitution; not closing ")"
 /\$([^)][^)]*)[^)]*$/bcheckchain
 # multi-line "$(...\n...)" -- command substitution; treat as nested subshell
-/\$([       ]*$/bnest
+/\$([  ]*$/bnest
 # "=(...)" -- Bash array assignment; not closing ")"
 /=(/bcheckchain
 # closing "...) &&"