From 65566984b08ab8aebb15ed1ead5969791921f6ca Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 30 Oct 2014 22:49:06 +0100 Subject: [PATCH] rstlint: make the "html leaked markup" regex a bit less sensitive --- Doc/tools/rstlint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {} -- 2.50.1