Files
Aliaksei Budavei 955c02dff7 runtime(sh): Distinguish parts of function definitions
- Highlight keywords "function" and "namespace" with
  the "Keyword" group ("shFunctionKey").
- Highlight function body delimiters "{" and "}" with the
  "Delimiter" group ("shFunctionExprRegion").
- Highlight function body delimiters "(" and ")" with the
  "Operator" group ("shFunctionSubShRegion").
- Also, follow one style in folding all supported variants
  of function bodies for grouping commands too by enclosing
  a delimited function body, e.g. "{" and "}", in a fold and
  leaving its function header, e.g. "function f()", out of
  it when the header is written on a separate line.

To restore previous colouring, add to "after/syntax/sh.vim":
------------------------------------------------------------
hi link shFunctionKey Function
hi link shFunctionExprRegion Function
hi link shFunctionSubShRegion Function
------------------------------------------------------------

fixes:  https://github.com/vim/vim/pull/19638#issuecomment-4052635546
closes: #19638

Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2026-03-24 20:36:23 +00:00

21 lines
881 B
Plaintext
Generated

| +0&#ffffff0@74
|n+0#af5f00255&|a|m|e|s|p|a|c|e| +0#0000000&|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+0#af5f00255&|a|m|e|s|p|a|c|e| +0#0000000&|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#af5f00255&|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|%|