mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
allow linebreaks in parsed wiki script
This commit is contained in:
parent
bc497a6262
commit
db02acd5ed
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user