Mercurial > octave
changeset 26215:39e84bf92d18
accept functions in nested +pkg directories in @DOCSTRING macros (bug #52596)
* scripts/mk-doc.pl: Detect nested +pkg directory names.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 12 Dec 2018 22:02:02 -0500 |
parents | c0ac6fc191d7 |
children | 96b6b69a1575 |
files | scripts/mk-doc.pl |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/mk-doc.pl Wed Dec 12 21:44:36 2018 -0500 +++ b/scripts/mk-doc.pl Wed Dec 12 22:02:02 2018 -0500 @@ -57,8 +57,15 @@ } elsif ($paths[-2] =~ m/^\+/) { - ## +package functions have package.name their function name - $fcn = substr ($paths[-2], 1) . "." . $paths[-1]; + $fcn = $paths[-1]; + for (my $i = 2; $i < @paths; $i++) + { + if ($paths[-$i] =~ m/^\+/) + { + ## +package functions have package.name their function name + $fcn = substr ($paths[-$i], 1) . "." . $fcn; + } + } } else {