# HG changeset patch # User Matt Mackall # Date 2013-09-17 23:19:04 # Node ID 1abd45e2553a9e5d03efd6fa4372b4599d361a65 # Parent 436a3f728375d9b64de4c76f1ed8db58ba0f3fcc check-code: check C patterns against .h files diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -326,7 +326,7 @@ inrevlogpats = [ checks = [ ('python', r'.*\.(py|cgi)$', pyfilters, pypats), ('test script', r'(.*/)?test-[^.~]*$', testfilters, testpats), - ('c', r'.*\.c$', cfilters, cpats), + ('c', r'.*\.[ch]$', cfilters, cpats), ('unified test', r'.*\.t$', utestfilters, utestpats), ('layering violation repo in revlog', r'mercurial/revlog\.py', pyfilters, inrevlogpats),