Skip to content

Commit cce336c

Browse files
committed
kernel-doc: extend $type_param to match members referenced by pointer
Currently, function parameter description can match '@type.member' expressions but fails to match '@type->member'. Extend the $type_param regex to allow matching both - https://lore.kernel.org/patchwork/patch/1007904/ Reported-by: Mike Rapoport <rppt@linux.ibm.com> Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
1 parent 809bdbb commit cce336c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linuxdoc/kernel_doc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def __getitem__(self, group):
176176
type_member_func = RE(type_member.pattern + r"\(\)")
177177
type_func = RE(r"(?<=\s)(\w+)(?<!\\)\(\)")
178178
type_constant = RE(r"(?<=\s)\%([-_\w]+)")
179-
type_param = RE(r"(?<=\s)\@(\w*(\.\w+)*(\.\.\.)?)")
179+
type_param = RE(r"(?<=\s)\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)")
180180
type_env = RE(r"(?<=\s)(\$\w+)")
181181
type_struct = RE(r"(?<=\s)\&((struct\s*)*[_\w]+)")
182182

0 commit comments

Comments
 (0)