Skip to content

Commit c04eaf7

Browse files
authored
Merge pull request #1470 from oli-obk/allow_multiline_config
allow linebreaks in parsed wiki script
2 parents bc497a6 + db02acd commit c04eaf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/lintlib.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
level_re = re.compile(r'''(Forbid|Deny|Warn|Allow)''')
1515
conf_re = re.compile(r'''define_Conf! {\n([^}]*)\n}''', re.MULTILINE)
1616
confvar_re = re.compile(
17-
r'''/// Lint: (\w+). (.*).*\n *\("([^"]*)", (?:[^,]*), (.*) => (.*)\),''')
17+
r'''/// Lint: (\w+). (.*).*\n\s*\("([^"]*)",\s+(?:[^,]*),\s+([^=]*)\s+=>\s+(.*)\),''', re.MULTILINE)
1818

1919

2020
def parse_lints(lints, filepath):

0 commit comments

Comments
 (0)