From: Georg Brandl Date: Thu, 25 Feb 2016 19:14:10 +0000 (+0100) Subject: Fix rstlint to also look for indented comments that should be directives. X-Git-Tag: v3.6.0a1~569^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2305b3cde3406f3a0ee7ff8c858bce5d372c77ae;p=thirdparty%2FPython%2Fcpython.git Fix rstlint to also look for indented comments that should be directives. --- diff --git a/Doc/tools/rstlint.py b/Doc/tools/rstlint.py index 7dccf72f99cb..de78041f77c9 100755 --- a/Doc/tools/rstlint.py +++ b/Doc/tools/rstlint.py @@ -43,7 +43,7 @@ directives = [ ] all_directives = '(' + '|'.join(directives) + ')' -seems_directive_re = re.compile(r'\.\. %s([^a-z:]|:(?!:))' % all_directives) +seems_directive_re = re.compile(r'(?