From a575839f25f1d0edafa1e1fad40b344eb28170b3 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 e7afc05..1c84473 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'(?