aboutsummaryrefslogtreecommitdiff
path: root/scripts/lintcommit.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-03-25 07:12:38 +0800
committerzeertzjq <zeertzjq@outlook.com>2026-03-25 07:38:22 +0800
commitecc2414eaef72953282ce2448fee0516ad68ec92 (patch)
tree3f0bf82bc90430bbd25cc617913aecdec183fcd4 /scripts/lintcommit.lua
parentcedafc86df236c7ad31ffd71394c3b252d9137ab (diff)
downloadrneovim-ecc2414eaef72953282ce2448fee0516ad68ec92.tar.gz
rneovim-ecc2414eaef72953282ce2448fee0516ad68ec92.tar.bz2
rneovim-ecc2414eaef72953282ce2448fee0516ad68ec92.zip
vim-patch:955c02d: 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: vim/vim#19638 https://github.com/vim/vim/commit/955c02dff76e097fc40344a4fbb0af9b9796208d Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
Diffstat (limited to 'scripts/lintcommit.lua')
0 files changed, 0 insertions, 0 deletions