On Thu, 14 May 2026 at 01:51, Janis Papanagnou <[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].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/CAJ1uvoCXuERwg1Jahpjst4_BwjXmTJiSDsjwz5urs65hegmb-g%40mail.gmail.com.

Raspunde prin e-mail lui