checkSpace.pl: allow {{, ){, and ({.

This commit is contained in:
Nick Mathewson 2020-01-09 16:21:17 -05:00
parent f1d371bf32
commit 15819cde61

View File

@ -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.