Files
Johnothan King 56033b9df3 runtime(sh): Fix some ksh-specific deficiencies in syntax script
- 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 (such a builtin has never been
  implemented in ksh93).
- '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.
- Fix bug causing ' ()' to be incorrectly validated in mksh scripts.
- Add the many ksh93/ksh2020 .sh.* variables to the list of special
  variables.
- Amend iskeyword to allow '.' so that '.sh.tilde.get' and such are
  valid function names/variable names. (For mksh functions starting
  with odd characters like '%' and '@' this would probably have too
  many bad side effects, so I've omitted such a change for that shell.)
- Add new syntax tests and regenerate syntax dump files

closes: #19383

Signed-off-by: Johnothan King <johnothanking@protonmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-02-12 18:18:44 +01:00

21 lines
1.1 KiB
Plaintext
Generated

|r+0#af5f00255#ffffff0|e|v| +0#0000000&@71
|r+0#af5f00255&|m| +0#0000000&@72
|r+0#af5f00255&|m|d|i|r| +0#0000000&@69
|s+0#af5f00255&|h|a|1|s|u|m| +0#0000000&@8|#+0#0000e05&| |9|3|v|-| +0#0000000&@52
|s+0#af5f00255&|h|a|2|5|6|s|u|m| +0#0000000&@6|#+0#0000e05&| |9|3|v|-| +0#0000000&@52
>s|h|a|2|s|u|m| @8|#+0#0000e05&| |9|3|v|-| +0#0000000&@52
|s+0#af5f00255&|h|a|3|8|4|s|u|m| +0#0000000&@6|#+0#0000e05&| |9|3|v|-| +0#0000000&@52
|s+0#af5f00255&|h|a|5|1|2|s|u|m| +0#0000000&@6|#+0#0000e05&| |9|3|v|-| +0#0000000&@52
|s+0#af5f00255&|t@1|y| +0#0000000&@70
|s+0#af5f00255&|u|m| +0#0000000&@71
|s+0#af5f00255&|y|n|c| +0#0000000&@70
|t+0#af5f00255&|a|i|l| +0#0000000&@70
|t+0#af5f00255&|e@1| +0#0000000&@71
|t+0#af5f00255&|r| +0#0000000&@13|#+0#0000e05&| |9|3|v|-| +0#0000000&@52
|t+0#af5f00255&@1|y| +0#0000000&@71
|u+0#af5f00255&|n|a|m|e| +0#0000000&@69
|u+0#af5f00255&|n|i|q| +0#0000000&@70
|v|m|s|t|a|t|e| @8|#+0#0000e05&| |O|b|s|o|l|e|s|c|e|n|t|;| |o|n|l|y| |a|v|a|i|l|a|b|l|e| |i|n| |9|3|v|-| |a|n|d| |o|l|d|e|r| +0#0000000&@11
|w+0#af5f00255&|c| +0#0000000&@72
@57|6|5|,|1| @9|3|1|%|