Currently, function parameter description can match '@type.member' expressions but fails to match '@type->member'. Extend the $type_param regex to allow matching both
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -212,7 +212,7 @@ my $anon_struct_union = 0; · 211 unmodified lines | |||
| 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]+))'; |