Skip to content
Permalink
Browse files

feat: Allow any characters in identifiers

The current character set currently seems tailored to the Python handler, but can be not enough for others
(example identifier for a planned Crystal handler: `Foo::Type#bar(a,b)`)

And it doesn't seem like there's any strong reason to limit these?
  • Loading branch information
oprypin committed Nov 1, 2020
1 parent 9815d5a commit 7ede68a0917b494eda2198931a8ad1c97fc8fce4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mkdocstrings/extension.py
@@ -91,7 +91,7 @@ class AutoDocProcessor(BlockProcessor):
"""

classname = "autodoc"
regex = re.compile(r"(?:^|\n)::: ?([:a-zA-Z0-9_.-]*) *(?:\n|$)")
regex = re.compile(r"(?:^|\n)::: ?(.+?) *(?:\n|$)")

def __init__(self, parser: BlockParser, md: Markdown, config: dict) -> None:
"""

0 comments on commit 7ede68a

Please sign in to comment.