Skip to content

Commit

Permalink
Allow numbers in rustdoc tests commands
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 23, 2024
1 parent abbde99 commit 732bc55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etc/htmldocck.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def filter_line(line):

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)

Expand Down

0 comments on commit 732bc55

Please sign in to comment.