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-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65566984b08ab8aebb15ed1ead5969791921f6ca;p=python rstlint: make the "html leaked markup" regex a bit less sensitive --- diff --git a/Doc/tools/rstlint.py b/Doc/tools/rstlint.py index 9e2557182d..e7afc0524c 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 = {}