diff options
author | Georg Brandl <georg@python.org> | 2014-10-30 21:49:54 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-30 21:49:54 (GMT) |
commit | 3b4cf554e58d219958fadbf6555d94b1805173f5 (patch) | |
tree | dc2181fcfcd9c5bb82281d01ae1b15d9c4b100b8 | |
parent | ef08bde8b8678293b4068120d705cc04fea3cca6 (diff) | |
download | cpython-3b4cf554e58d219958fadbf6555d94b1805173f5.zip cpython-3b4cf554e58d219958fadbf6555d94b1805173f5.tar.gz cpython-3b4cf554e58d219958fadbf6555d94b1805173f5.tar.bz2 |
rstlint: make the "html leaked markup" regex a bit less sensitive
-rwxr-xr-x | Doc/tools/rstlint.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tools/rstlint.py b/Doc/tools/rstlint.py index 66dd46a..be19ec8 100755 --- a/Doc/tools/rstlint.py +++ b/Doc/tools/rstlint.py @@ -45,7 +45,7 @@ directives = [ all_directives = '(' + '|'.join(directives) + ')' seems_directive_re = re.compile(r'\.\. %s([^a-z:]|:(?!:))' % all_directives) default_role_re = re.compile(r'(^| )`\w([^`]*?\w)?`($| )') -leaked_markup_re = re.compile(r'[a-z]::[^=]|:[a-z]+:|`|\.\.\s*\w+:') +leaked_markup_re = re.compile(r'[a-z]::\s|`|\.\.\s*\w+:') checkers = {} |