diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-12-28 12:04:14 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-12-28 12:04:14 +0000 |
commit | 18a5374781d76baf5d22c65dd33010cdff5c2ba2 (patch) | |
tree | d1e6c71a6676500c18775d7f5e8d2b4d8031b62e /scripts/code-style.pl | |
parent | 753f11d8c98982b3b8dd5c9266d6f7fd91f7e719 (diff) | |
download | brdo-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.pl | 2 |
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/) { |