Skip to content
Snippets Groups Projects
Commit d1cb185b authored by Matt Mackall's avatar Matt Mackall
Browse files

check-config: don't continue prematurely

The early check for section headers like ^``foo`` was missing actual
options like ^``foo.bar``.
parent 0ae07173
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,6 @@
m = re.match('\s*``(\S+)``', l)
if m:
prevname = m.group(1)
continue
if re.match('^\s*-+$', l):
sect = prevname
prevname = ''
......@@ -31,7 +30,6 @@
if re.match('^\s*-+$', l):
sect = prevname
prevname = ''
continue
if sect and prevname:
name = sect + '.' + prevname
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment