aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-28 09:05:49 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-28 09:05:49 +0000
commit6f5dbefa7efe0c0c86928777b8821b3fdc91cf45 (patch)
treee92106bd8cac85684983daf62d952a9d8e6b8f18 /contrib
parent67dc7baa59e2b38a6720d843b54257ca0dd9e722 (diff)
downloadtor-6f5dbefa7efe0c0c86928777b8821b3fdc91cf45.tar
tor-6f5dbefa7efe0c0c86928777b8821b3fdc91cf45.tar.gz
Normalize space: add one between every control keyword and control clause.
svn:r3003
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/checkSpace.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/checkSpace.pl b/contrib/checkSpace.pl
index c0f2410bf..f64a22fb9 100755
--- a/contrib/checkSpace.pl
+++ b/contrib/checkSpace.pl
@@ -18,9 +18,9 @@ for $fn (@ARGV) {
print "Space\@EOL:$fn:$.\n";
}
## Warn about control keywords without following space.
- #if (/\s(?:if|while|for|switch)\(/) {
- # print " KW(:$fn:$.\n";
- #}
+ if (/\s(?:if|while|for|switch)\(/) {
+ print " KW(:$fn:$.\n";
+ }
## Warn about multiple empty lines.
if ($lastnil && /^$/) {
print " DoubleNL:$fn:$.\n";