diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-01-09 16:21:17 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-02-06 14:33:05 -0500 |
commit | 15819cde6163e43ac86d1be078a7b6b4e3ed7a02 (patch) | |
tree | 412686bdb4799c3b3442d2ef331e7bc4d32002ab /scripts/maint/checkSpace.pl | |
parent | f1d371bf32d33cee95df1b13daa43686f81d94ef (diff) | |
download | tor-15819cde6163e43ac86d1be078a7b6b4e3ed7a02.tar.gz tor-15819cde6163e43ac86d1be078a7b6b4e3ed7a02.zip |
checkSpace.pl: allow {{, ){, and ({.
Diffstat (limited to 'scripts/maint/checkSpace.pl')
-rwxr-xr-x | scripts/maint/checkSpace.pl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/maint/checkSpace.pl b/scripts/maint/checkSpace.pl index 96a256968a..af81db8d53 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. |