Allow numbers in rustdoc tests commands
This commit is contained in:
parent
4e258bb4c3
commit
6909feab8e
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue