diff options
| author | Mike Rapoport <rppt@linux.ibm.com> | 2018-11-07 11:47:13 -0500 |
|---|---|---|
| committer | Jonathan Corbet <corbet@lwn.net> | 2018-11-07 17:39:06 -0500 |
| commit | bfd228c73090e594efce24fa0f299272bef53c6d (patch) | |
| tree | 0ee93ef7669ab17c97257bc853f18b35440472aa /scripts/kernel-doc | |
| parent | 76dd3e7b6650ba5aed96347e685657f80590a7b6 (diff) | |
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>
Diffstat (limited to 'scripts/kernel-doc')
| -rwxr-xr-x | scripts/kernel-doc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kernel-doc b/scripts/kernel-doc index 24d3550f7b45..f9f143145c4b 100755 --- a/scripts/kernel-doc +++ b/scripts/kernel-doc | |||
| @@ -212,7 +212,7 @@ my $anon_struct_union = 0; | |||
| 212 | my $type_constant = '\b``([^\`]+)``\b'; | 212 | my $type_constant = '\b``([^\`]+)``\b'; |
| 213 | my $type_constant2 = '\%([-_\w]+)'; | 213 | my $type_constant2 = '\%([-_\w]+)'; |
| 214 | my $type_func = '(\w+)\(\)'; | 214 | my $type_func = '(\w+)\(\)'; |
| 215 | my $type_param = '\@(\w*(\.\w+)*(\.\.\.)?)'; | 215 | my $type_param = '\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)'; |
| 216 | my $type_fp_param = '\@(\w+)\(\)'; # Special RST handling for func ptr params | 216 | my $type_fp_param = '\@(\w+)\(\)'; # Special RST handling for func ptr params |
| 217 | my $type_env = '(\$\w+)'; | 217 | my $type_env = '(\$\w+)'; |
| 218 | my $type_enum = '\&(enum\s*([_\w]+))'; | 218 | my $type_enum = '\&(enum\s*([_\w]+))'; |
