Allow numbers in rustdoc tests commands · rust-lang/rust@6909fea

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Commit 6909fea

Allow numbers in rustdoc tests commands

1 parent 4e258bb commit 6909fea

File tree

1 file changed

+

1

-

1

lines changed

1 file changed

+

1

-

1

lines changed

Lines changed: 1 addition & 1 deletion

Original file line numberDiff line numberDiff line change

@@ -270,7 +270,7 @@ def filter_line(line):

270270
271271

LINE_PATTERN = re.compile(r'''

272272

//@\s+

273-

(?P<negated>!?)(?P<cmd>[A-Za-z]+(?:-[A-Za-z]+)*)

273+

(?P<negated>!?)(?P<cmd>[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)

274274

(?P<args>.*)$

275275

''', re.X | re.UNICODE)

276276

0 commit comments

Comments

 (0)