Skip to content

Commit a1dc609

Browse files
committed
Fix documentation generation for configurable lints
1 parent 0e5e2c4 commit a1dc609

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

util/lintlib.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
group_re = re.compile(r'''\s*([a-z_][a-z_0-9]+)''')
1515
conf_re = re.compile(r'''define_Conf! {\n([^}]*)\n}''', re.MULTILINE)
1616
confvar_re = re.compile(
17-
r'''/// Lint: (\w+). (.*).*\n\s*\([^,]+,\s+"([^"]+)",\s+([^=\)]+)=>\s+(.*)\),''', re.MULTILINE)
17+
r'''/// Lint: (\w+)\. (.*)\n\s*\([^,]+,\s+"([^"]+)":\s+([^,]+),\s+([^\.\)]+).*\),''', re.MULTILINE)
1818
comment_re = re.compile(r'''\s*/// ?(.*)''')
1919

2020
lint_levels = {
@@ -93,7 +93,7 @@ def parse_configs(path):
9393
match = re.search(conf_re, contents)
9494
confvars = re.findall(confvar_re, match.group(1))
9595

96-
for (lint, doc, name, default, ty) in confvars:
96+
for (lint, doc, name, ty, default) in confvars:
9797
configs[lint.lower()] = Config(name.replace("_", "-"), ty, doc, default)
9898

9999
return configs

0 commit comments

Comments
 (0)