Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Undocumented construct <<(
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
Am Mi den 18. Nov 2015 um 15:41 schrieb Peter Stephenson:
> On Wed, 18 Nov 2015 15:23:08 +0100
> Klaus Ethgen <Klaus+zsh@xxxxxxxxx> wrote:
> > I searched now pretty long for a undocumented construct <<(list).
>
> It's written confusingly (not the first time for a zsh construct :-/).
:-)
> It's particularly confusing given that "<<HERE" is indeed a special
> construct.
>
> What you're looking at is a normal < followed by a <(list),
Yes, that is the same. I just wasn't aware that it also work for the
special <(...) construct.
Nevertheless, thanks for the fast response and for documenting it.
For the records, I fixed zsh.vim to allow that syntactical sugar:
- --- /usr/share/vim/vim74/syntax/zsh.vim 2015-08-17 03:23:35.000000000 +0100
+++ zsh.vim 2015-11-18 15:44:37.885885225 +0100
@@ -55,7 +55,7 @@
syn match zshRedir '|&\='
syn region zshHereDoc matchgroup=zshRedir
- - \ start='<\@<!<<\s*\z([^<]\S*\)'
+ \ start='<\@<!<<\s*\z([^<(]\S*\)'
\ end='^\z1\>'
\ contains=@zshSubst
syn region zshHereDoc matchgroup=zshRedir
Maybe that can find a way into vim in some future time too. :-)
Regards
Klaus
- --
Klaus Ethgen http://www.ethgen.ch/
pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <Klaus@xxxxxxxxx>
Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQGcBAEBCgAGBQJWTJJtAAoJEKZ8CrGAGfasfvMMAKj1wrkbhqTgadiCrkoSmJdP
lI+oG48ccq5gmF7vNrOzWBJvBE4R1tFv/BqLyfjZXaRZzf9Yz3MDcLAdZgOzR3+K
wnN8RdO0WIt2iFClJME+XRhsgIlQ3UIn27WbWq0YgpGU7NHTOtJ0aDJBLTwSRgtN
N5bAVylQrX9BGjnVsgj+vJ2NbI1FiAFkLT38pk+vZA2JWKmqJb+YhdmfthOE/fxw
9tg+QF6YOKIYkKLMLjjRjSkA6s6iePiMr6dLMUMn04YjDKS88Aw7qKS3dJ020M1R
sqAg3tYUDWGU/peMCDUfVPo3mavn9TO640m7Q8A41XHskHW6tiZbl/jhorCF/idS
1W3YrBgY5RSPDF4cnslut+OCNrPBqckBhg80lMTrA+pGfAkgIWpxqSau7lWZ6gLj
hFl/BEgHIn1LoLW1ItfpMY0Jy9+sV/w73q1xyfcz8z0fIfZth9w42Ja7lx8IjQ9g
d9kXNUTkAw6/6ILHeAa7RKh2sEqgcqlbuooiHHEtRw==
=E+Mu
-----END PGP SIGNATURE-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author