summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgrubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2008-02-15 09:23:07 +0000
committergrubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2008-02-15 09:23:07 +0000
commit9b01073e38a7488f7b9552f7b3cdb53fe3a060fd (patch)
treec0cd4ac853cdf2b554715e2c6318ba9d51643e9c
parent943a87d1aa204f9a9c9874b53dcd57ed4a6a2b24 (diff)
downloaddocutils-9b01073e38a7488f7b9552f7b3cdb53fe3a060fd.tar.gz
Allow ``+`` and ``:`` in reference names.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils/docutils@5510 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rw-r--r--parsers/rst/states.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/parsers/rst/states.py b/parsers/rst/states.py
index 50f5dd082..eabc179ef 100644
--- a/parsers/rst/states.py
+++ b/parsers/rst/states.py
@@ -512,8 +512,8 @@ class Inliner:
non_whitespace_before = r'(?<![ \n])'
non_whitespace_escape_before = r'(?<![ \n\x00])'
non_whitespace_after = r'(?![ \n])'
- # Alphanumerics with isolated internal [-._] chars (i.e. not 2 together):
- simplename = r'(?:(?!_)\w)+(?:[-._](?:(?!_)\w)+)*'
+ # Alphanumerics with isolated internal [-._+:] chars (i.e. not 2 together):
+ simplename = r'(?:(?!_)\w)+(?:[-._+:](?:(?!_)\w)+)*'
# Valid URI characters (see RFC 2396 & RFC 2732);
# final \x00 allows backslash escapes in URIs:
uric = r"""[-_.!~*'()[\];/:@&=+$,%a-zA-Z0-9\x00]"""