summaryrefslogtreecommitdiff
path: root/scripts/code-style.pl
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-12-28 12:04:14 +0000
committerDries Buytaert <dries@buytaert.net>2005-12-28 12:04:14 +0000
commit18a5374781d76baf5d22c65dd33010cdff5c2ba2 (patch)
treed1e6c71a6676500c18775d7f5e8d2b4d8031b62e /scripts/code-style.pl
parent753f11d8c98982b3b8dd5c9266d6f7fd91f7e719 (diff)
downloadbrdo-18a5374781d76baf5d22c65dd33010cdff5c2ba2.tar.gz
brdo-18a5374781d76baf5d22c65dd33010cdff5c2ba2.tar.bz2
- Patch #167 (!) by killes: made the code style script work with ++ and -- operators.
(The oldest issue of the year award goes to killes.)
Diffstat (limited to 'scripts/code-style.pl')
-rw-r--r--scripts/code-style.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/code-style.pl b/scripts/code-style.pl
index 2ae2e1a13..796ed6c12 100644
--- a/scripts/code-style.pl
+++ b/scripts/code-style.pl
@@ -134,7 +134,7 @@ while (<>) {
$msg = "missing space after ','";
}
# spaces before and after, only foreach may use $foo=>bar
- elsif (/[^ =|-|\+](\+|\-)[^ =>|-|\+]/ && $program && !/foreach/) {
+ elsif (/[^ =|\-|\+](\+|\-)[^ =>|\-|\+]/ && $program && !/foreach/) {
$msg = "'$1' -> ' $1 '";
}
elsif (/[^ =](\*|==|\.=|=>|=|\|\|)[^ =>]/ && $program && !/foreach/) {