contrib/check-code.py
changeset 13736 f3c4421e121c
parent 13524 121c89dd7983
child 13748 26f8844d1757
--- a/contrib/check-code.py	Wed Mar 23 09:34:22 2011 -0500
+++ b/contrib/check-code.py	Wed Mar 23 09:41:58 2011 -0500
@@ -177,7 +177,7 @@
     (r'\([^\)]+\) \w+', "use (int)foo, not (int) foo"),
     (r'\S+ (\+\+|--)', "use foo++, not foo ++"),
     (r'\w,\w', "missing whitespace after ,"),
-    (r'\w[+/*]\w', "missing whitespace in expression"),
+    (r'^[^#]\w[+/*]\w', "missing whitespace in expression"),
     (r'^#\s+\w', "use #foo, not # foo"),
     (r'[^\n]\Z', "no trailing newline"),
 ]