On Sat, 16 May 2026 at 15:02, Janis Papanagnou <[email protected]> wrote:
> Hi Doug! > > Sorry if my tone appeared to be rough; it wasn't meant to be. > Not at all. > It seems with 9.2 quite some wishes will come true. :-) > > The only thing that is obscure to me is how the actual version will be > determined. > And I have no idea what /"generic" KornShell highlighting/ actually means > below. > I hope that's the full fledged ksh93 (in form of ksh93u+m). > "generic" appears to be a union of the more specific version feature sets. So unless you want incorrect syntax, based on a specific version, to be flagged it should work well. The shebang line will usually have /bin/sh (e.g. on AIX the 'sh' was > actually a 'ksh') > or /bin/ksh or /bin/ksh93 (e.g. on my Linux system the latter are both > ksh93u+m) . > The necessity to specify more than ksh (or maybe ksh93) should not be > mandated > to get the appropriate syntax highlighting. (I've no idea how Vim > determines the > actual ksh-evolution variant, since the shebang line won't reflect any > details.) - So > if we have #!/bin/ksh which of mksh, ksh88, ksh93, ksh93u syntax will be > selected? > I hope that's the full fledged ksh93 (which is mostly a superset of > previous versions). > You get the "generic" KornShell if the shebang line is ".../ksh", if the file extension is `*.ksh` and there's no more specific shebang line, or if g:is_kornshell is set. If none of that is in effect it also attempts to check the binary name. You can look at most of the detection code at the top of runtime/syntax/sh.vim...if you're feeling brave. We should add some way to configure the more specific versions with yet another config variable, g:sh_kornshell_dialect = "ksh88", and/or a file comment that is not the shebang line. > Careful with the "ksh2020", and "ksh93v(-)"; these should *not* define the > base! > (You've noticed the state for the former already, and the latter is not > better.) > It does not. I assumed incorrectly before, as I so often do. > Thanks. > No problem. 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/CAJ1uvoCLTU5ze3BzObCMxLcJjiCtsow-WJOq8%2BKGdi4nMFFRUg%40mail.gmail.com.
