From 86d6cec138c98080e6152831a2d5700ab0128a44 Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Tue, 1 Aug 2017 10:33:16 +0200 Subject: [PATCH] Fix the config regex for the wiki generator --- util/lintlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/lintlib.py b/util/lintlib.py index c0a919b50e0..c46706352b7 100644 --- a/util/lintlib.py +++ b/util/lintlib.py @@ -14,7 +14,7 @@ lintname_re = re.compile(r'''pub\s+([A-Z_][A-Z_0-9]*)''') level_re = re.compile(r'''(Forbid|Deny|Warn|Allow)''') conf_re = re.compile(r'''define_Conf! {\n([^}]*)\n}''', re.MULTILINE) confvar_re = re.compile( - r'''/// Lint: (\w+). (.*).*\n\s*\("([^"]*)",\s+(?:[^,]*),\s+([^=]*)\s+=>\s+(.*)\),''', re.MULTILINE) + r'''/// Lint: (\w+). (.*).*\n\s*\([^,]+,\s+"([^"]+)",\s+([^=\)]+)=>\s+(.*)\),''', re.MULTILINE) def parse_lints(lints, filepath):