Fix parse error when code follows a terminator