[tor-commits] [tor/master] checkSpace.pl: allow {{, ){, and ({.
nickm at torproject.org
nickm at torproject.org
Thu Mar 5 13:25:48 UTC 2020
commit 15819cde6163e43ac86d1be078a7b6b4e3ed7a02
Author: Nick Mathewson <nickm at torproject.org>
Date: Thu Jan 9 16:21:17 2020 -0500
checkSpace.pl: allow {{, ){, and ({.
---
scripts/maint/checkSpace.pl | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/scripts/maint/checkSpace.pl b/scripts/maint/checkSpace.pl
index 96a256968..af81db8d5 100755
--- a/scripts/maint/checkSpace.pl
+++ b/scripts/maint/checkSpace.pl
@@ -156,9 +156,8 @@ for my $fn (@ARGV) {
# msg "//:$fn:$.\n";
s!//.*!!;
}
- ## Warn about unquoted braces preceded by non-space.
- # (No character except a space should come before a {)
- if (/([^\s'])\{/) {
+ ## Warn about unquoted braces preceded by unexpected character.
+ if (/([^\s'\)\(\{])\{/) {
msg "$1\{:$fn:$.\n";
}
## Warn about double semi-colons at the end of a line.
More information about the tor-commits
mailing list