[lm] Fix end expected (to close 'for' at line 57) near '<eof>'