Permalink
Browse files

checksrc: detect "}else" uses as well

  • Loading branch information...
1 parent 450975b commit 58a7c513620888c081ce7fc71609a00b67f5b259 @bagder bagder committed Sep 7, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/checksrc.pl
View
2 lib/checksrc.pl
@@ -145,7 +145,7 @@ sub scanfile {
}
# check for "} else"
- if($l =~ /^(.*)\} else/) {
+ if($l =~ /^(.*)\} *else/) {
checkwarn($line, length($1), $file, $l, "else after closing brace on same line");
}
# check for "){"

0 comments on commit 58a7c51

Please sign in to comment.