# HG changeset patch # User Felipe G. Nievinski # Date 1388943471 7200 # Node ID 64f178d8e1e0aebf31a28033c2ad7ce9f311bf85 # Parent 6fd22474783ee66535202ad97e4894a894c3b73f doc: Minor updates to help for Octave keywords (bug #41108) * help.cc: Minor updates to help for Octave keywords. diff -r 6fd22474783e -r 64f178d8e1e0 libinterp/corefcn/help.cc --- a/libinterp/corefcn/help.cc Sun Jan 05 15:32:24 2014 -0200 +++ b/libinterp/corefcn/help.cc Sun Jan 05 15:37:51 2014 -0200 @@ -452,8 +452,9 @@ pair_type ("case", "-*- texinfo -*-\n\ -@deftypefn {Keyword} {} case @{@var{value}@}\n\ -A case statement in an switch. Octave cases are exclusive and do not\n\ +@deftypefn {Keyword} {} case @var{value}\n\ +@deftypefnx {Keyword} {} case @{@var{value}, @dots{}@}\n\ +A case statement in a switch. Octave cases are exclusive and do not\n\ fall-through as do C-language cases. A switch statement must have at least\n\ one case. See @code{switch} for an example.\n\ @seealso{switch}\n\ @@ -461,7 +462,8 @@ pair_type ("catch", "-*- texinfo -*-\n\ -@deftypefn {Keyword} {} catch\n\ +@deftypefn {Keyword} {} catch\n\ +@deftypefnx {Keyword} {} catch @var{value}\n\ Begin the cleanup part of a try-catch block.\n\ @seealso{try}\n\ @end deftypefn"), @@ -507,9 +509,10 @@ pair_type ("end", "-*- texinfo -*-\n\ @deftypefn {Keyword} {} end\n\ -Mark the end of any @code{for}, @code{if}, @code{do}, @code{while}, or\n\ -@code{function} block.\n\ -@seealso{for, parfor, if, do, while, function}\n\ +Mark the end of any @code{for}, @code{parfor}, @code{if}, @code{do},\n\ +@code{while}, @code{function}, @code{switch}, @code{try}, or\n\ +@code{unwind_protect} block.\n\ +@seealso{for, parfor, if, do, while, function, switch, try, unwind_protect}\n\ @end deftypefn"), pair_type ("end_try_catch", @@ -595,7 +598,7 @@ pair_type ("global", "-*- texinfo -*-\n\ -@deftypefn {Keyword} {} global\n\ +@deftypefn {Keyword} {} global @var{var}\n\ Declare variables to have global scope.\n\ \n\ @example\n\ @@ -676,7 +679,7 @@ pair_type ("static", "-*- texinfo -*-\n\ @deftypefn {Keyword} {} static\n\ -This function has been deprecated in favor of persistent.\n\ +This statement has been deprecated in favor of @code{persistent}.\n\ @seealso{persistent}\n\ @end deftypefn"), @@ -716,7 +719,7 @@ pair_type ("until", "-*- texinfo -*-\n\ -@deftypefn {Keyword} {} until\n\ +@deftypefn {Keyword} {} until (@var{cond})\n\ End a do-until loop. See @code{do} for an example.\n\ @seealso{do}\n\ @end deftypefn"),