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
3.2 KiB
Plaintext
Generated

|f+0#af5f00255#ffffff0|i| +0#0000000&@72
@75
|#+0#0000e05&| |=@5| +0#0000000&@66
|#+0#0000e05&| |S|h|a|r|e|d|-|s|t|a|t|e| |c|o|m@1|a|n|d| |s|u|b|s|t|i|t|u|t|i|o|n|s| |u|s|i|n|g| |t|h|e| |s|y|n|t|a|x| |$|{|<|f|i|l|e|;|}| +0#0000000&@11
|#+0#0000e05&| |a|r|e| |o|n|l|y| |s|u|p@1|o|r|t|e|d| |b|y| |k|s|h|9|3|,| |n|o|t| |m|k|s|h|.| +0#0000000&@34
>e+0#af5f00255&|c|h|o| +0#e000002&|$+0#e000e06&|{| +0#0000000&@67
| +0#e000e06&@7|p+0#af5f00255&|r|i|n|t|f| +0#e000e06&|%|s| |s|t|r| +0#0000000&@53
|}+0#e000e06&| +0#e000002&|>+0#af5f00255&| +0#0000000&|/|t|m|p|/|s|t|r|f|i|l|e| @58
|e+0#af5f00255&|c|h|o| +0#e000002&|$+0#e000e06&|{|<+0#af5f00255&|/+0#e000e06&|t|m|p|/|s|t|r|f|i|l|e|;|}| +0#0000000&@52
@75
|#+0#0000e05&| |k|s|h|8@1| |a|n|d| |k|s|h|9|3| |n|o|n|-|d|o|t| |s|p|e|c|i|a|l| |v|a|r|i|a|b|l|e|s| +0#0000000&@31
|p+0#af5f00255&|r|i|n|t| +0#e000002&|$+0#e000e06&|{| |R|A|N|D|O|M|=+0#af5f00255&| +0#e000e06&|S|R|A|N|D|O|M|=+0#af5f00255&| +0#e000e06&|S|H|L|V|L|=+0#af5f00255&| +0#e000e06&|J|O|B|M|A|X|=+0#af5f00255&| +0#e000e06&|K|S|H|_|V|E|R|S|I|O|N|=+0#af5f00255&| +0#e000e06&|F|I|G|N|O|R|E|=+0#af5f00255&| +0#e000e06&|L|C|_|T|I|M|E|=+0#af5f00255&| +0#e000e06&|L|C|_
|N|U|M|E|R|I|C|=+0#af5f00255&| +0#e000e06&|L|C|_|M|E|S@1|A|G|E|S|=+0#af5f00255&| +0#e000e06&|L|C|_|C|T|Y|P|E|=+0#af5f00255&| +0#e000e06&|L|C|_|C|O|L@1|A|T|E|=+0#af5f00255&| +0#e000e06&|L|C|_|A|L@1|=+0#af5f00255&| +0#e000e06&|L|A|N|G|=+0#af5f00255&| +0#e000e06&|F|P|A|T|H|=+0#af5f00255&| +0#e000e06&|P|S|4|=+0#af5f00255&| +0#e000e06&|O|P|T|I|N
|D|=+0#af5f00255&| +0#e000e06&|O|P|T|A|R|G|=+0#af5f00255&| +0#e000e06&|t+0#af5f00255&|r|u|e| +0#e000e06&|;|}| +0#0000000&@56
|p+0#af5f00255&|r|i|n|t| +0#e000002&|$+0#e000e06&|(|L|I|N|E|N|O|=+0#af5f00255&| +0#e000e06&|S|E|C|O|N|D|S|=+0#af5f00255&| +0#e000e06&|T|M|O|U|T|=+0#af5f00255&| +0#e000e06&|P@1|I|D|=+0#af5f00255&| +0#e000e06&|L|I|N|E|S|=+0#af5f00255&| +0#e000e06&|C|O|L|U|M|N|S|=+0#af5f00255&| +0#e000e06&|V|I|S|U|A|L|=+0#af5f00255&| +0#e000e06&|O|L|D|P|W|D|=+0#af5f00255&| +0#e000e06&|P|S|3|=+0#af5f00255&| +0#e000e06&
|M|A|I|L|P|A|T|H|=+0#af5f00255&| +0#e000e06&|C|D|P|A|T|H|=+0#af5f00255&| +0#e000e06&|F|C|E|D|I|T|=+0#af5f00255&| +0#e000e06&|H|I|S|T|C|M|D|=+0#af5f00255&| +0#e000e06&|H|I|S|T|E|D|I|T|=+0#af5f00255&| +0#e000e06&|H|I|S|T|S|I|Z|E|=+0#af5f00255&| +0#e000e06&|H|I|S|T|F|I|L|E|=+0#af5f00255&| +0#e000e06&|E|N|V|=+0#af5f00255&| +0#e000e06&|M|A|I|L|C
|H|E|C|K|=+0#af5f00255&| +0#e000e06&|E|D|I|T|O|R|=+0#af5f00255&| +0#e000e06&|S|H|E|L@1|=+0#af5f00255&| +0#e000e06&|f+0#af5f00255&|a|l|s|e|)+0#e000e06&| +0#0000000&@47
|p+0#af5f00255&|r|i|n|t| +0#e000002&|$+0#e000e06&|(|R|E|P|L|Y|=+0#af5f00255&| +0#e000e06&|M|A|I|L|=+0#af5f00255&| +0#e000e06&|H|O|M|E|=+0#af5f00255&| +0#e000e06&|P|W|D|=+0#af5f00255&| +0#e000e06&|I|F|S|=+0#af5f00255&| +0#e000e06&|P|S|2|=+0#af5f00255&| +0#e000e06&|P|S|1|=+0#af5f00255&| +0#e000e06&|P|A|T|H|=+0#af5f00255&| +0#e000e06&|S|H|_|O|P|T|I|O|N|S|=+0#af5f00255&| +0#e000e06&|E|R@1|N|O|=+0#af5f00255&| +0#e000e06&|C|O|M
|P|_|C|W|O|R|D|=+0#af5f00255&| +0#e000e06&|C|O|M|P|_|L|I|N|E|=+0#af5f00255&| +0#e000e06&|C|O|M|P|_|P|O|I|N|T|=+0#af5f00255&| +0#e000e06&|C|O|M|P|_|W|O|R|D|S|=+0#af5f00255&| +0#e000e06&|C|O|M|P|_|K|E|Y|=+0#af5f00255&| +0#e000e06&|C|O|M|P|R|E|P|L|Y|=+0#af5f00255&| +0#e000e06&|C|O|M|P|_|W|O|@+0#4040ff13&@2
| +0#0000000&@56|1|3|6|,|1| @8|6|7|%|