Patchwork [2,of,5] check-config: allow numbers in configs

login
register
mail settings
Submitter timeless@mozdev.org
Date Dec. 8, 2015, 9:35 a.m.
Message ID <fbbe3a0bbfb764a9aa7d.1449567315@waste.org>
Download mbox | patch
Permalink /patch/11934/
State Accepted
Headers show

Comments

timeless@mozdev.org - Dec. 8, 2015, 9:35 a.m.
# HG changeset patch
# User timeless <timeless@mozdev.org>
# Date 1449565741 0
#      Tue Dec 08 09:09:01 2015 +0000
# Node ID fbbe3a0bbfb764a9aa7da7ea09203aef9580b585
# Parent  d8df9bd167f056abdc2ff3b9295a4b7e012a9fe0
check-config: allow numbers in configs

p4...

Patch

diff --git a/contrib/check-config.py b/contrib/check-config.py
--- a/contrib/check-config.py
+++ b/contrib/check-config.py
@@ -40,13 +40,13 @@ 
             if m:
                 confsect = m.group(1)
                 continue
-            m = re.match(r'^\s+(?:#\s*)?([a-z._]+) = ', l)
+            m = re.match(r'^\s+(?:#\s*)?(\S+) = ', l)
             if m:
                 name = confsect + '.' + m.group(1)
                 documented[name] = 1
 
             # like the bugzilla extension
-            m = re.match(r'^\s*([a-z]+\.[a-z]+)$', l)
+            m = re.match(r'^\s*(\S+\.\S+)$', l)
             if m:
                 documented[m.group(1)] = 1
 
@@ -56,7 +56,7 @@ 
                 documented[m.group(1)] = 1
 
             # quoted in help or docstrings
-            m = re.match(r'.*?``([-a-z_]+\.[-a-z_]+)``', l)
+            m = re.match(r'.*?``(\S+\.\S+)``', l)
             if m:
                 documented[m.group(1)] = 1