From: Sebastian Hahn Date: Sun, 15 Aug 2010 22:28:39 +0000 (+0200) Subject: Add a rule to detect misplaced labels during check-spaces X-Git-Tag: tor-0.2.2.15-alpha~17^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a64e660f0e146d8530da74d74bc9c196e6ac21fe;p=thirdparty%2Ftor.git Add a rule to detect misplaced labels during check-spaces --- diff --git a/contrib/checkSpace.pl b/contrib/checkSpace.pl index b694abff64..6eb32e5620 100755 --- a/contrib/checkSpace.pl +++ b/contrib/checkSpace.pl @@ -20,6 +20,10 @@ for $fn (@ARGV) { if (/\t/) { print " TAB:$fn:$.\n"; } + ## Warn about markers that don't have a space in front of them + if (/^[a-zA-Z_][a-zA-Z_0-9]*:/) { + print "nosplabel:$fn:$.\n"; + } ## Warn about trailing whitespace. if (/ +$/) { print "Space\@EOL:$fn:$.\n";