commit 15819cde6163e43ac86d1be078a7b6b4e3ed7a02 parent f1d371bf32d33cee95df1b13daa43686f81d94ef Author: Nick Mathewson <nickm@torproject.org> Date: Thu, 9 Jan 2020 16:21:17 -0500 checkSpace.pl: allow {{, ){, and ({. Diffstat:
| M | scripts/maint/checkSpace.pl | | | 5 | ++--- |
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git 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.