Make update_lints script accept digits in lint names
This commit is contained in:
parent
04f9d35f64
commit
23dfb2fbc0
3 changed files with 4 additions and 2 deletions
|
@ -9,7 +9,7 @@ import sys
|
|||
|
||||
declare_lint_re = re.compile(r'''
|
||||
declare_lint! \s* [{(] \s*
|
||||
pub \s+ (?P<name>[A-Z_]+) \s*,\s*
|
||||
pub \s+ (?P<name>[A-Z_][A-Z_0-9]*) \s*,\s*
|
||||
(?P<level>Forbid|Deny|Warn|Allow) \s*,\s*
|
||||
" (?P<desc>(?:[^"\\]+|\\.)*) " \s* [})]
|
||||
''', re.X | re.S)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue