From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19855 invoked from network); 13 Feb 2021 08:53:40 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Feb 2021 08:53:40 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1613206420; b=Iod3DZTlMG7HjbDtEl19j3MFenARbyJNPxFgZYmtjZOlOgl/PZRXFjeTNOb+41gfxLh+svkpdZ kPg1AftV6c/TZH7GoZiJu3MLCQAQhruzfbE5Hwt7YA6AHZVMa/Ez72cAw/IhCikp+Bb0S31VR5 KeLxLe/hEjNKIfRD05EDCCylqznkBtKxKbPQzhH6js+cQMlrJn6Q3s20v8UycE0GQDpRnek1aY LNjDT9lRJQ+Ea4Whu3KucB3cj1rA1kb8Jrr6Gxj/rTj3zcn3G/mCajio/W3vkSLGyrHU1LOJOm AWyaiVBdVPauxO7LRW09Ef3DBaWleW+OUFpFuqlsmDMH4g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (relay1-d.mail.gandi.net) smtp.remote-ip=217.70.183.193; dmarc=none header.from=chazelas.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1613206420; bh=SArjx8lV+c0w2ZwAdwLVKwtHzi9JGNTSzpovrM5UUfM=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:DKIM-Signature; b=UKDq4a82UrerWRw6kmc7KO8alfpxG4vrbjGlshPbu87N6qjV4S40nR2jlpt98mz5c1R2P4knch cKc3nhz+ivj131wA8UMCYO/4MC1rd+mFkpfBsnn37OvGE2NxoMDkVPqqmmadGLX2ZrZoPUFoit XAKnngWKNsoA9g2MPBogV0DmWVJgX8viGn94IR47Pa9RkJlh5iVkrwFv6Q53P8smjSioPSUnG4 V+C8l8Kpmi61CQBEW7rnK+/TMwwx/LSyzkZSDkpy6zuCg1Vu97/H5DiMQ30fFHIDODfkCu9vFQ r0Thjc+VYKQddZL8cOShRVBUqoFE4C16lmkCcfkX3mp/mw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Rj3AjJEsTdK23h9QIBdS1JFVJQk05o1JJPzCS0GOsGY=; b=NKjXz7z7fDIvRKzPqpSR/jFb5h pE3QtUF+kRHZNKxphFzt8UccQyLyxy/FyEF5jzhA1tHtvWsbyX9fFPUpRaWdzFdV5a4hDzEm+bqFT RSLhCrlouexst036i9MSybyfCAtBRoivvQFo3BPNLCi5Gs5Inpe7RmeE7OpTGisZjfvds0j5hnOzg Jei7XX4RmQZReZEzSjPb57ct73hy9hB5Nx4PYHCVAfZWFAWJWXrDit6v6kvWftrfPmREEdhuhMC+r +t1XYRr2a50k2ETrDRjR8X3b67dEe34NVOQNNHHresp8NKhMHV+79vxLYyeAWFxUstCHQKu/hAgXO fqunO/7g==; Received: from authenticated user by zero.zsh.org with local id 1lAqgO-00009v-3b; Sat, 13 Feb 2021 08:53:40 +0000 Authentication-Results: zsh.org; iprev=pass (relay1-d.mail.gandi.net) smtp.remote-ip=217.70.183.193; dmarc=none header.from=chazelas.org; arc=none Received: from relay1-d.mail.gandi.net ([217.70.183.193]:37339) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1lAqg5-000PzM-DJ; Sat, 13 Feb 2021 08:53:22 +0000 X-Originating-IP: 5.71.197.169 Received: from chazelas.org (0547c5a9.skybroadband.com [5.71.197.169]) (Authenticated sender: stephane@chazelas.org) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 6424B240005; Sat, 13 Feb 2021 08:53:19 +0000 (UTC) Date: Sat, 13 Feb 2021 08:53:19 +0000 From: Stephane Chazelas To: Bart Schaefer , Zsh hackers list Subject: Re: Block comments ala Ray Message-ID: <20210213085319.v6svj6gpmmmzuiqp@chazelas.org> Mail-Followup-To: Bart Schaefer , Zsh hackers list References: <20210213083521.kv3y3qzfnaffflfh@chazelas.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210213083521.kv3y3qzfnaffflfh@chazelas.org> X-Seq: 48039 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: 2021-02-13 08:35:21 +0000, Stephane Chazelas: [...] > Other possible avenues: > > - <<# .. #>> allows inline comments, but looks more like a > redirection operator than a comment. > - alternatively: <<#EOC .. EOC (or <<#{...} <<#[...] and the > usual pairs) to make nesting easier. That one could allow to improve the for a (pod head{1..4} over item back begin end for encoding) aliases[=$a]=":||:<<'=cut' #" We can already use ATM to add pod doc to zsh scripts to: for a (pod head{1..4} over item back begin end for encoding) aliases[=$a]='<<#=cut' (with the caveat that your pod documentation must not embed a =cut anywhere, if we allow the delimiter to be anywhere). > - The =word .. =cut of perl: conflicts with zsh's =cmd operator, > not nestable put would allow pod inline documentation. [...]