Skip to content

Commit bfd228c

Browse files
rpptJonathan Corbet
authored andcommitted
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 Signed-off-by: Mike Rapoport <rppt@linux.ibm.com> Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent 76dd3e7 commit bfd228c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/kernel-doc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ my $anon_struct_union = 0;
212212
my $type_constant = '\b``([^\`]+)``\b';
213213
my $type_constant2 = '\%([-_\w]+)';
214214
my $type_func = '(\w+)\(\)';
215-
my $type_param = '\@(\w*(\.\w+)*(\.\.\.)?)';
215+
my $type_param = '\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)';
216216
my $type_fp_param = '\@(\w+)\(\)'; # Special RST handling for func ptr params
217217
my $type_env = '(\$\w+)';
218218
my $type_enum = '\&(enum\s*([_\w]+))';

0 commit comments

Comments
 (0)