From 09d76afe84dd5b895e102dcd8df8ce6271bebfef Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 27 Sep 2024 08:53:30 -0700 Subject: feat(defaults): pretty :help headings #30544 Problem: Headings in :help do not stand out visually. Solution: Define a non-standard `@markup.heading.1.delimiter` group and special-case it in `highlight_group.c`. FUTURE: This is a cheap workaround until we have #25718 which will enable: - fully driven by `vimdoc/highlights.scm` instead of using highlight tricks (`guibg=bg guifg=bg guisp=fg`) - better support of "cterm" ('notermguicolors') --- runtime/syntax/help.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/syntax/help.vim') diff --git a/runtime/syntax/help.vim b/runtime/syntax/help.vim index fced5e7dd1..0f62c26294 100644 --- a/runtime/syntax/help.vim +++ b/runtime/syntax/help.vim @@ -15,7 +15,7 @@ set cpo&vim syn match helpHeadline "^[A-Z.][-A-Z0-9 .,()_']*?\=\ze\(\s\+\*\|$\)" syn match helpSectionDelim "^===.*===$" syn match helpSectionDelim "^---.*--$" -" Neovim: support language annotation in codeblocks +" Nvim: support language annotation in codeblocks if has("conceal") syn region helpExample matchgroup=helpIgnore start=" >[a-z0-9]*$" start="^>[a-z0-9]*$" end="^[^ \t]"me=e-1 end="^<" concealends else -- cgit From bd56c1e41f1f66d82595bf3fb40cbb7ffe5e38bc Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 6 Oct 2024 07:33:37 +0800 Subject: vim-patch:partial:89872f5: runtime(doc): update formatting and syntax closes: vim/vim#15800 https://github.com/vim/vim/commit/89872f58a9938142417906fc3243257c67c0af9c Co-authored-by: Milly --- runtime/syntax/help.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'runtime/syntax/help.vim') diff --git a/runtime/syntax/help.vim b/runtime/syntax/help.vim index 0f62c26294..fd128bb0b5 100644 --- a/runtime/syntax/help.vim +++ b/runtime/syntax/help.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: Vim help file " Maintainer: The Vim Project -" Last Change: 2023 Aug 10 +" Last Change: 2024 Oct 05 " Former Maintainer: Bram Moolenaar " Quit when a (custom) syntax file was already loaded @@ -60,10 +60,14 @@ syn match helpSpecial "\"ms=s+1 syn match helpSpecial "\[N]" -" avoid highlighting N N in help.txt +" avoid highlighting N N in quickref.txt syn match helpSpecial "N N"he=s+1 syn match helpSpecial "Nth"me=e-2 syn match helpSpecial "N-1"me=e-2 +" highlighting N of cinoptions-values in indent.txt +syn match helpSpecial "^\t-\?\zsNs\?\s"me=s+1 +" highlighting N of cinoptions-values in indent.txt +syn match helpSpecial "^\t[>enf{}^L:=lbghNEpti+cC/(uUwWkmMjJ)*#P]N\s"ms=s+2,me=e-1 syn match helpSpecial "{[-_a-zA-Z0-9'"*+/:%#=[\]<>.,]\+}" syn match helpSpecial "\s\[[-a-z^A-Z0-9_]\{2,}]"ms=s+1 syn match helpSpecial "<[-a-zA-Z0-9_]\+>" -- cgit