commit 15819cde6163e43ac86d1be078a7b6b4e3ed7a02 Author: Nick Mathewson nickm@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.
tor-commits@lists.torproject.org