Files
org-vim/runtime/syntax/testdir/dumps/sh_mksh_12.dump
T
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
831 B
Plaintext

| +0&#ffffff0@74
|n|a|m|e|s|p|a|c|e| |1|b|a|d|.|i|n|v|a|l|i|d| |{+0#e000e06&| +0#0000000&@50
@8|:+0#0000e05&| +0#0000000&@65
|}+0#e000e06&| +0#0000000&@73
@75
>n|a|m|e|s|p|a|c|e| |f|o@1|1|(+0#e000e06&|)| +0#0000000&|{+0#e000e06&| +0#0000000&@56
@8|:+0#0000e05&| +0#0000000&@1|#+0#0000e05&| |B|a|d| |s|y|n|t|a|x| +0#0000000&@51
|}+0#e000e06&| +0#0000000&@73
@75
|#+0#0000e05&| |B|a|d| |s|y|n|t|a|x| |(|n|o| |n|a|m|e|)| +0#0000000&@52
|f+0#00e0e07&|u|n|c|t|i|o|n| +0#0000000&|{+0#e000e06&| +0#0000000&@64
@8|f+0#af5f00255&|a|l|s|e| +0#0000000&@61
|}+0#e000e06&| +0#0000000&@73
@75
|#+0#0000e05&| |B|a|d| |s|y|n|t|a|x| |a|l|s|o| +0#0000000&@57
@1|(+0#e000e06&|)| +0#0000000&|{+0#e000e06&| +0#0000000&@69
@9|f+0#af5f00255&|a|l|s|e| +0#0000000&@60
|}+0#e000e06&| +0#0000000&@73
|(+0#e000e06&|)| +0#0000000&@72
@57|1|9|0|,|1| @8|9|8|%|