Skip to content

Commit a2c7a3b

Browse files
committed
Update check_markup.py
1 parent 7eba524 commit a2c7a3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/check_markup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from pathlib import Path
1818

1919
PATTERNS = [
20-
("sphinx role", re.compile(r":[\w.-]+:`.*?`")),
20+
("sphinx role", re.compile(r":(?:\w+:)?[\w.-]+:`.*?`")),
2121
("literal/code span", re.compile(r"``.*?``")),
2222
("substitution ref", re.compile(r"\|[\w.-]+\|")),
2323
("percent placeholder", re.compile(r"%\(\w+\)[a-zA-Z]|%[a-zA-Z]")),

0 commit comments

Comments
 (0)