Skip to contentSkip to conversation

t/chainlint.sed: drop extra spaces from regex character class

PATCH New Eric Sunshine 1 participant 1 message Jul 31, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 t/chainlint.sed: drop extra spaces from regex character class

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.

---

Just something I noticed while examining t/chainlint.sed after reading Jonathan's report[1] of a false-positive.

This is atop 'es/chain-lint-in-subshell' in 'next'.

[1]: https://public-inbox.org/git/[email protected]/

 t/chainlint.sed | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
t/chainlint.sed +4 -4
index a0de8a3882..5f0882cb38 100644
@@ -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 "...) &&"
Signature · 1 line
2.18.0.597.ga71716f1ad