diff -r 497bb1cf7b15 scripts/testfun/test.m --- a/scripts/testfun/test.m Fri Oct 07 08:53:04 2011 -0700 +++ b/scripts/testfun/test.m Fri Oct 07 08:54:19 2011 -0700 @@ -364,6 +364,14 @@ endif __code = ""; +### ENDFUNCTION + + elseif (strcmp (__type, "endfunction")) + ## endfunction simply declares the end of a previous function block. + ## There is no processing to be done here, just skip to next block. + __istest = 0; + __code = ""; + ### ASSERT/FAIL elseif (strcmp (__type, "assert") || strcmp (__type, "fail"))