From db02acd5eddb2ba7cb12a30f38d05a360c67228e Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Thu, 26 Jan 2017 11:28:51 +0100 Subject: [PATCH] allow linebreaks in parsed wiki script --- util/lintlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/lintlib.py b/util/lintlib.py index 45a7110b6a9..c0a919b50e0 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 *\("([^"]*)", (?:[^,]*), (.*) => (.*)\),''') + r'''/// Lint: (\w+). (.*).*\n\s*\("([^"]*)",\s+(?:[^,]*),\s+([^=]*)\s+=>\s+(.*)\),''', re.MULTILINE) def parse_lints(lints, filepath):