Hi Doug,
I have no single test file so I list some ad hoc constructs that are still
wrongly
market as errors in my currently used 9.1 version...
a=${x/y}
b=${x/y/z}
c=${x//y/z}
d=${.sh.value}
set "${name}"+([0-9]).*
Strangely, the other two I mentioned I could not reproduce anymore - they
are now correctly highlighted in the files where I saw them - after I fiddled
with the awk-"after" file; the following are fine now (don't know what's going
on here)...
if (( j * (i + 2) )) ; then : ; fi
e=$'Hello\tworld\n'
Concerning the Awk embedded code, I never used Shell-heredocs for that,
like in your example, to read that from stdin. - I always embed the code
explicitly inline (here with some parameters/context added for variety)
something like...
# some shell code before
awk -v t="${date)" '
# awk program here
' "${conf}" "${data}"> "${outfile}"
# more shell code after that
With the add-on I had submitted I seem to recall that I had mis-highlighting
(in the past; something seems to have changed meanwhile) in cases where
two awk instances were appearing, as in...
awk '...' | awk '...'
Shell heredocs per se had never been a highlighting issue for me as far as I
recall.
BTW, thanks for updating the ksh syntax-highlighting! (The errors had for long
been quite a nuisance.)
Thanks!
Regards,
Janis
________________________________________
Von: [email protected] <[email protected]> im Auftrag von Doug
Kearns <[email protected]>
Gesendet: Donnerstag, 14. Mai 2026 15:48
An: [email protected]
Betreff: Re: [vim/vim] runtime/syntax/sh.vim: Array highlighting (Issue #20183)
On Thu, 14 May 2026 at 01:51, Janis Papanagnou
<[email protected]<mailto:[email protected]>> wrote:
Hi Doug,
no, I haven't set the g:is_kornshell variable. If typing that as ex-command I'm
getting:
"E121: Undefined variable: g:is_kornshell". Also if setting it in .vimrc
there's no change.
Does that mean I have a too old vim installation, and with the next update it
works?
Vim 9.2 is the latest release and that should include most of the latest
KornShell updates. You can always grab a copy of the latest file directly from
the repo
(https://raw.githubusercontent.com/vim/vim/refs/heads/master/runtime/syntax/sh.vim)
and stick it in ~/.vim/syntax/
Can you post a copy of an example file that is not being highlighted correctly
so I can check it works with the latest syntax file?
Concerning the embedded Awk syntax... - I don't know what "heredoc markers" are.
<snip>
I meant something like
awk -f- data <<'AWK'
{ print }
AWK
We could add some heredoc regions that would highlight sed, awk and others if
the heredoc token matched the filetype name. We could also handle it based on
command name like your plugin. However, I'm not sure the sh syntax file needs
any extra complications.
Regards,
Doug
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
[email protected]<mailto:[email protected]>.
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/CAJ1uvoCXuERwg1Jahpjst4_BwjXmTJiSDsjwz5urs65hegmb-g%40mail.gmail.com<https://groups.google.com/d/msgid/vim_dev/CAJ1uvoCXuERwg1Jahpjst4_BwjXmTJiSDsjwz5urs65hegmb-g%40mail.gmail.com?utm_medium=email&utm_source=footer>.
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/vim_dev/DU0PR02MB1042209F7A058299CDA0F6B1FF3072%40DU0PR02MB10422.eurprd02.prod.outlook.com.