History

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

Mike Rapoport committed 8 years ago

Commit bfd228c1 parent 76dd3e71 file · +1 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/kernel-doc+1−1
@@ -212,7 +212,7 @@ my $anon_struct_union = 0; · 211 unmodified lines
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]+))';

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t