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: v2.7.12rc1~211 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a575839f25f1d0edafa1e1fad40b344eb28170b3;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 e7afc0524ccc..1c844734790d 100755 --- a/Doc/tools/rstlint.py +++ b/Doc/tools/rstlint.py @@ -42,7 +42,7 @@ directives = [ ] all_directives = '(' + '|'.join(directives) + ')' -seems_directive_re = re.compile(r'\.\. %s([^a-z:]|:(?!:))' % all_directives) +seems_directive_re = re.compile(r'(?