Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Block comments ala Ray
- X-seq: zsh-workers 48070
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: Juergen Christoffel <jc+zsh@xxxxxxxxx>
- Cc: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Block comments ala Ray
- Date: Tue, 16 Feb 2021 18:21:32 +0100
- Archived-at: <https://zsh.org/workers/48070>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-02/20210216172132.GA439689%40zira.vinc17.org>
- In-reply-to: <20210216153049.GA8000@unser.net>
- List-id: <zsh-workers.zsh.org>
- Mail-followup-to: Juergen Christoffel <jc+zsh@xxxxxxxxx>, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- References: <CAH+w=7YZREq7FbJCCoWoJ-vQ7+P5Z=_mKB-aStoMiBRupqD_wA@mail.gmail.com> <20210216153049.GA8000@unser.net>
On 2021-02-16 16:30:49 +0100, Juergen Christoffel wrote:
> That said, wouldn't it be possible to augment the comment parsing to use
> something like perl's "plain old documentation" (pod) meachnism, e.g.
>
> #=pod
> This is a block comment
> and $foo would not have a special meaning inside it
> really
> #=cut
This could break existing scripts... unless a specific switch is added
(but more generally, you could imagine a feature that would optionally
preprocess the script before it is parsed by zsh).
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author