Skip to content
Browse files

Allow commas in class / thing names (to fix refs to generic classes w…

…ith multiple generic types)
  • Loading branch information...
1 parent 06da861 commit b6ba6fd0299d92472348ba9e8af95d259369cea4 @fredreichbier fredreichbier committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 sphinx_ooc/desc.py
View
4 sphinx_ooc/desc.py
@@ -9,8 +9,8 @@
from sphinx.util.compat import Directive, directive_dwim
ooc_sig_re = re.compile(
- r'''^ ([\w<>/]*[ /])? # class name(s)
- ([\w<>~]+) \s* # thing name
+ r'''^ ([\w<>/,]*[ /])? # class name(s)
+ ([\w<>~,]+) \s* # thing name
(?: \((.*)\))? # optional: arguments
(?:\s* -> \s* (.*))? # return annotation
$ # and nothing more

0 comments on commit b6ba6fd

Please sign in to comment.
Something went wrong with that request. Please try again.