summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-10-30 21:49:06 (GMT)
committerGeorg Brandl <georg@python.org>2014-10-30 21:49:06 (GMT)
commit65566984b08ab8aebb15ed1ead5969791921f6ca (patch)
tree732e69a67f16d2484911d7074f3f7c372952894d
parentd4754b0a9d29c7cc82d069475a09309b8730eac6 (diff)
downloadcpython-65566984b08ab8aebb15ed1ead5969791921f6ca.zip
cpython-65566984b08ab8aebb15ed1ead5969791921f6ca.tar.gz
cpython-65566984b08ab8aebb15ed1ead5969791921f6ca.tar.bz2
rstlint: make the "html leaked markup" regex a bit less sensitive
-rwxr-xr-xDoc/tools/rstlint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tools/rstlint.py b/Doc/tools/rstlint.py
index 9e25571..e7afc05 100755
--- a/Doc/tools/rstlint.py
+++ b/Doc/tools/rstlint.py
@@ -44,7 +44,7 @@ directives = [
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 = {}