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