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
212my $type_constant = '\b``([^\`]+)``\b';212my $type_constant = '\b``([^\`]+)``\b';
213my $type_constant2 = '\%([-_\w]+)';213my $type_constant2 = '\%([-_\w]+)';
214my $type_func = '(\w+)\(\)';214my $type_func = '(\w+)\(\)';
215my $type_param = '\@(\w*(\.\w+)*(\.\.\.)?)';215my $type_param = '\@(\w*((\.\w+)|(->\w+))*(\.\.\.)?)';
216my $type_fp_param = '\@(\w+)\(\)'; # Special RST handling for func ptr params216my $type_fp_param = '\@(\w+)\(\)'; # Special RST handling for func ptr params
217my $type_env = '(\$\w+)';217my $type_env = '(\$\w+)';
218my $type_enum = '\&(enum\s*([_\w]+))';218my $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