]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
rstlint: make the "html leaked markup" regex a bit less sensitive
authorGeorg Brandl <georg@python.org>
Thu, 30 Oct 2014 21:49:54 +0000 (22:49 +0100)
committerGeorg Brandl <georg@python.org>
Thu, 30 Oct 2014 21:49:54 +0000 (22:49 +0100)
Doc/tools/rstlint.py

index 66dd46a53eb2e2c74954228fa2827fcfa254aa36..be19ec8b377b7fb3f2f97e3b9f411c53b78f3c75 100755 (executable)
@@ -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 = {}