From: Georg Brandl Date: Thu, 30 Oct 2014 21:49:06 +0000 (+0100) Subject: rstlint: make the "html leaked markup" regex a bit less sensitive X-Git-Tag: v2.7.9rc1~79 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=65566984b08ab8aebb15ed1ead5969791921f6ca;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 9e2557182d42..e7afc0524ccc 100755 --- a/Doc/tools/rstlint.py +++ b/Doc/tools/rstlint.py @@ -44,7 +44,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 = {}