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
879 B
Plaintext
Generated

|b+0#af5f00255#ffffff0|a|s|e|n|a|m|e| +0#0000000&@66
|c+0#af5f00255&|a|t| +0#0000000&@71
|c+0#af5f00255&|h|g|r|p| +0#0000000&@69
|c+0#af5f00255&|h|m|o|d| +0#0000000&@69
|c+0#af5f00255&|h|o|w|n| +0#0000000&@69
>c+0#af5f00255&|k|s|u|m| +0#0000000&@69
|c+0#af5f00255&|m|p| +0#0000000&@71
|c+0#af5f00255&|o|m@1| +0#0000000&@70
|c+0#af5f00255&|p| +0#0000000&@72
|c+0#af5f00255&|u|t| +0#0000000&@71
|d+0#af5f00255&|a|t|e| +0#0000000&@70
|d+0#af5f00255&|i|r|n|a|m|e| +0#0000000&@67
|e+0#af5f00255&|g|r|e|p| +0#0000000&@10|#+0#0000e05&| |O|b|s|o|l|e|s|c|e|n|t| +0#0000000&@45
|e+0#af5f00255&|x|p|r| +0#0000000&@70
|f+0#af5f00255&|g|r|e|p| +0#0000000&@10|#+0#0000e05&| |O|b|s|o|l|e|s|c|e|n|t| +0#0000000&@45
|f+0#af5f00255&|m|t| +0#0000000&@71
|f+0#af5f00255&|o|l|d| +0#0000000&@70
|g+0#af5f00255&|e|t|c|o|n|f| +0#0000000&@67
|g+0#af5f00255&|r|e|p| +0#0000000&@70
@57|2|9|,|1| @9|1|2|%|