mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
Allow numbers in rustdoc tests commands
This commit is contained in:
parent
4e258bb4c3
commit
6909feab8e
@ -270,7 +270,7 @@ KNOWN_DIRECTIVE_NAMES = get_known_directive_names()
|
||||
|
||||
LINE_PATTERN = re.compile(r'''
|
||||
//@\s+
|
||||
(?P<negated>!?)(?P<cmd>[A-Za-z]+(?:-[A-Za-z]+)*)
|
||||
(?P<negated>!?)(?P<cmd>[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)
|
||||
(?P<args>.*)$
|
||||
''', re.X | re.UNICODE)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user