contrib/check-code.py
changeset 16413 1a420761fcb7
parent 16373 329887a7074c
child 16428 9b26d541e972
--- a/contrib/check-code.py	Wed Apr 11 11:37:13 2012 +0200
+++ b/contrib/check-code.py	Thu Apr 12 20:22:18 2012 -0500
@@ -227,7 +227,7 @@
     (r' ;', "no space before ;"),
     (r'\w+\* \w+', "use int *foo, not int* foo"),
     (r'\([^\)]+\) \w+', "use (int)foo, not (int) foo"),
-    (r'\S+ (\+\+|--)', "use foo++, not foo ++"),
+    (r'\w+ (\+\+|--)', "use foo++, not foo ++"),
     (r'\w,\w', "missing whitespace after ,"),
     (r'^[^#]\w[+/*]\w', "missing whitespace in expression"),
     (r'^#\s+\w', "use #foo, not # foo"),