From 2305b3cde3406f3a0ee7ff8c858bce5d372c77ae Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 25 Feb 2016 20:14:10 +0100 Subject: Fix rstlint to also look for indented comments that should be directives. --- Doc/tools/rstlint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/tools/rstlint.py b/Doc/tools/rstlint.py index 7dccf72..de78041 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'(?