Skip to content

Commit 2602a16

Browse files
authored
Fix regex for keyword arguments (#17)
1 parent 0b61b10 commit 2602a16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx_paramlinks/sphinx_paramlinks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def secondary_cvt(m):
101101
paramname,
102102
)
103103

104-
line = re.sub(r"^:(kwarg|param) ([^:]+? )?([^:]+?):", cvt, line)
104+
line = re.sub(r"^:(keyword|param) ([^:]+? )?([^:]+?):", cvt, line)
105105
line = re.sub(r"^:(kwtype|type) ([^:]+? )?([^:]+?):", secondary_cvt, line)
106106
return line
107107

0 commit comments

Comments
 (0)