diff contrib/check-config.py @ 27310:9c98fe1416c2

check-config: recognize convert style documentation
author timeless <timeless@mozdev.org>
date Tue, 08 Dec 2015 09:22:53 +0000
parents d1cb185b9ee2
children 24a1c24fad6e
line wrap: on
line diff
--- a/contrib/check-config.py	Tue Dec 08 04:56:26 2015 +0000
+++ b/contrib/check-config.py	Tue Dec 08 09:22:53 2015 +0000
@@ -50,6 +50,11 @@
             if m:
                 documented[m.group(1)] = 1
 
+            # like convert
+            m = re.match(r'^\s*:(\S+\.\S+):\s+', l)
+            if m:
+                documented[m.group(1)] = 1
+
             # quoted in help or docstrings
             m = re.match(r'.*?``([-a-z_]+\.[-a-z_]+)``', l)
             if m: