Fixed lexer problem where end of block wasn't detected properly.