[vim/vim] sh.vim: Fix some ksh-specific highlighting deficiencies (PR #19383)

1 view
Skip to first unread message

Johnothan King

unread,
1:33 AM (8 hours ago) 1:33 AM
to vim/vim, Subscribed
  • Amend syntax highlighting to allow for ksh93 discipline function names (e.g. foo.get()) and mksh's odd function naming idiosyncrasies (shNamespaceOne was introduced to enforce stricter naming rules for ksh93 namespaces).
  • Remove bind from ksh93 syntax (neither ksh88 nor ksh93 have ever had a bind command).
  • xgrep is only available in ksh93v- as an alternative way to invoke the builtin grep -X, so reflect that in the syntax highlighting.
  • Forbid bash-style function name() { syntax when highlighting ksh88 and ksh93 scripts.
  • Updated the corresponding tests and dumps.

You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19383

Commit Summary

  • 6bc618a sh.vim: Fix some ksh-specific deficiencies

File Changes

(87 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19383@github.com>

Reply all
Reply to author
Forward
0 new messages