[Python-checkins] cpython (2.7): rstlint: make the "html leaked markup" regex a bit less sensitive

georg.brandl python-checkins at python.org
Thu Oct 30 22:51:00 CET 2014


https://hg.python.org/cpython/rev/48825a84f87e
changeset: 93280:48825a84f87e
branch: 2.7
parent: 93275:4eb58e4633a9
user: Georg Brandl <georg at python.org>
date: Thu Oct 30 22:49:06 2014 +0100
summary:
 rstlint: make the "html leaked markup" regex a bit less sensitive
files:
 Doc/tools/rstlint.py | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/tools/rstlint.py b/Doc/tools/rstlint.py
--- a/Doc/tools/rstlint.py
+++ b/Doc/tools/rstlint.py
@@ -44,7 +44,7 @@
 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 = {}
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /