[Python-checkins] cpython (3.4): 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/9fbf3b99da98
changeset:   93281:9fbf3b99da98
branch:      3.4
parent:      93278:0f50406f9aea
user:        Georg Brandl <georg at python.org>
date:        Thu Oct 30 22:49:54 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
@@ -45,7 +45,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