Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Block comments ala Ray
- X-seq: zsh-workers 48039
- From: Stephane Chazelas <stephane@xxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Block comments ala Ray
- Date: Sat, 13 Feb 2021 08:53:19 +0000
- Archived-at: <https://zsh.org/workers/48039>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-workers/2021-02/20210213085319.v6svj6gpmmmzuiqp%40chazelas.org>
- In-reply-to: <20210213083521.kv3y3qzfnaffflfh@chazelas.org>
- List-id: <zsh-workers.zsh.org>
- Mail-followup-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- References: <CAH+w=7YZREq7FbJCCoWoJ-vQ7+P5Z=_mKB-aStoMiBRupqD_wA@mail.gmail.com> <20210213083521.kv3y3qzfnaffflfh@chazelas.org>
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.
[...]
Messages sorted by:
Reverse Date,
Date,
Thread,
Author