944b90be add testcases for while()/endwhile() errors f605b92d improve error message on a stray "endwhile()"