From: Georg Brandl Date: Thu, 30 Oct 2014 21:49:54 +0000 (+0100) Subject: rstlint: make the "html leaked markup" regex a bit less sensitive X-Git-Tag: v3.4.3rc1~395 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3b4cf554e58d219958fadbf6555d94b1805173f5;p=thirdparty%2FPython%2Fcpython.git rstlint: make the "html leaked markup" regex a bit less sensitive --- diff --git a/Doc/tools/rstlint.py b/Doc/tools/rstlint.py index 66dd46a53eb2..be19ec8b377b 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 = {}