----------------------------------------------------------------------------------
@MSGID: 1@dont-email.me> 95bc89e6
@REPLY: 1@dont-email.me> 298e7f48
@REPLYADDR castAway <no@where.com>
@REPLYTO 2:5075/128 castAway
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID: 1@dont-email.me>
@RFC-References: 1@dont-email.me>
1@nnrp.usenet.blueworldhosting.com> 1@dont-email.me> <rzk79m.8tugqn@bdesham.net>
1@dont-email.me>
@TZUTC: -0300
@PID: Mozilla Thunderbird
@TID: FIDOGATE-5.12-ge4e8b94
On 18/08/2023 00:47, Janis Papanagnou wrote:
> On 18.08.2023 02:01, Benjamin Esham wrote:
>> Janis Papanagnou wrote:
> The only thing is that my (k)sh syntax file supports embedded awk
> scripts so that both, ksh and awk, are highlighted accordingly.
> The zsh syntax does not support that feature, the whole awk program
> is marked monochrome as an undifferentiated string. It may be that
> this embedded syntax feature had been added later (it was probably
> contributed by someone in the shell and/or awk newsgroup). (I`ll
> have a look into that, but I`m no expert in vim`s syntax language,
> so I have to see what I can make of it.)
>
Check `:h sh-awk`:
*sh-embed* *sh-awk*
Sh: EMBEDDING LANGUAGES~
You may wish to embed languages into sh. I`ll give an example courtesy of
Lorance Stinson on how to do this with awk as an example. Put the following
file into $HOME/.vim/after/syntax/sh/awkembed.vim: >
[code]
This code will then let the awk code in the single quotes: >
awk `...awk code here...`
be highlighted using the awk highlighting syntax. Clearly this may be
extended to other languages.
The awkembed.vim ball may be changed to be read after ksh syntax, I reckon.
--- Mozilla Thunderbird
* Origin: A noiseless patient Spider (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5075/128
@PATH: 5075/128 5020/1042 4441