tags 36459 patch
quit

I attach a patch, which I think tackles the problems presented.  It
stops matching incorrectly when there is no function defined, with the
change suggested by Leo Liu.

Also, the regexp used now matches the newer help output (GNU Octave
4.2.x and newer), while still supporting older GNU Octave versions.

I've tested with GNU Octave 4.0.0 and GNU Octave 5.1.0.

Best regards,
Mauro.