comparison scripts/miscellaneous/inputParser.m @ 28917:72d57dbcc305

maint: Add semicolon after break and return keywords. * __unimplemented__.m, logm.m, inputParser.m, install.m, camlookat.m, ginput.m, __gnuplot_draw_axes__.m, subplot.m, __splinefit__.m, ismember.m, bicg.m, bicgstab.m, cgs.m, gmres.m, pcg.m, tfqmr.m, treelayout.m: Add semicolon after break and return keywords.
author Rik <rik@octave.org>
date Tue, 13 Oct 2020 20:12:56 -0700
parents 0de38a6ef693
children 9e43deb9bfc3
comparison
equal deleted inserted replaced
28916:ec591c500fa4 28917:72d57dbcc305
418 ## switch, not an positional option. This does mean that 418 ## switch, not an positional option. This does mean that
419 ## positional options cannot be strings named like parameter 419 ## positional options cannot be strings named like parameter
420 ## keys. See bug #50752. 420 ## keys. See bug #50752.
421 idx -= 1; 421 idx -= 1;
422 vidx -= 1; 422 vidx -= 1;
423 break 423 break;
424 endif 424 endif
425 try 425 try
426 valid_option = opt.val (in); 426 valid_option = opt.val (in);
427 catch 427 catch
428 valid_option = false; 428 valid_option = false;
435 ## 3) it's a struct with the Parameter pairs. 435 ## 3) it's a struct with the Parameter pairs.
436 if (ischar (in) || (this.StructExpand && isstruct (in) 436 if (ischar (in) || (this.StructExpand && isstruct (in)
437 && isscalar (in))) 437 && isscalar (in)))
438 idx -= 1; 438 idx -= 1;
439 vidx -= 1; 439 vidx -= 1;
440 break 440 break;
441 else 441 else
442 this.error (sprintf (["failed validation of %s\n", ... 442 this.error (sprintf (["failed validation of %s\n", ...
443 "Validation function: %s"], 443 "Validation function: %s"],
444 toupper (opt.name), disp (opt.val))); 444 toupper (opt.name), disp (opt.val)));
445 endif 445 endif