Skip to content

Commit b9fd410

Browse files
committed
Allow anything that is not a comma as an argument.
1 parent a2178c1 commit b9fd410

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mkdocstrings_handlers/vba/regex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
re_signature = re.compile(
1313
r"((?P<visibility>Private|Public) +)?"
1414
r"(?P<type>Sub|Function|Property (Let|Get)) *"
15-
r"(?P<name>[A-Z_][A-Z0-9_]*)\( *(?P<args>[A-Z0-9_ ,=]*)\)"
15+
r"(?P<name>[A-Z_][A-Z0-9_]*)\( *(?P<args>[^,]+( *, *[^,]+)*)? *\)"
1616
r"( +As +(?P<returnType>[A-Z_][A-Z0-9_]*))?",
1717
re.IGNORECASE,
1818
)

mkdocstrings_handlers/vba/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def parse_signature(line: str) -> VbaSignatureInfo:
116116
return_type=match["returnType"],
117117
procedure_type=match["type"],
118118
name=match["name"],
119-
args=list(parse_args(match["args"])),
119+
args=list(parse_args(match["args"] or "")),
120120
)
121121

122122

0 commit comments

Comments
 (0)