From 18a5374781d76baf5d22c65dd33010cdff5c2ba2 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Wed, 28 Dec 2005 12:04:14 +0000
Subject: [PATCH] - Patch #167 (!) by killes: made the code style script work
 with ++ and -- operators.   (The oldest issue of the year award goes to
 killes.)

---
 scripts/code-style.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/code-style.pl b/scripts/code-style.pl
index 2ae2e1a139d4..796ed6c12229 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/) {
-- 
GitLab