From 3b4cf554e58d219958fadbf6555d94b1805173f5 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 30 Oct 2014 22:49:54 +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 66dd46a53e..be19ec8b37 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 = {} -- 2.40.0