aboutsummaryrefslogtreecommitdiff
path: root/runtime/syntax
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-10-17 07:30:49 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-10-17 07:55:55 +0800
commitde74ed35aff7ce5586a5fcefda415942108eb4ac (patch)
tree9b46f5465a01f8fc7c289537888625bc6970e3aa /runtime/syntax
parent1f7f83ff678de4ba2acaefafb9fbd1d69dd2abe3 (diff)
downloadrneovim-de74ed35aff7ce5586a5fcefda415942108eb4ac.tar.gz
rneovim-de74ed35aff7ce5586a5fcefda415942108eb4ac.tar.bz2
rneovim-de74ed35aff7ce5586a5fcefda415942108eb4ac.zip
vim-patch:4bfb899: runtime(help): fix end of sentence highlight in code examples
closes: vim/vim#15745 https://github.com/vim/vim/commit/4bfb89996f227d5fbb4803f0d8dbd3105483b625 Co-authored-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Danilo Rezende <returndanilo@users.noreply.github.com>
Diffstat (limited to 'runtime/syntax')
-rw-r--r--runtime/syntax/help.vim5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/syntax/help.vim b/runtime/syntax/help.vim
index bccbacaeec..dc892a7d60 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 <https://github.com/vim/vim>
-" Last Change: 2024 Oct 08
+" Last Change: 2024 Oct 16
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
" Quit when a (custom) syntax file was already loaded
@@ -43,7 +43,8 @@ syn match helpOption "'[a-z]\{2,\}'"
syn match helpOption "'t_..'"
syn match helpNormal "'ab'"
syn match helpCommand "`[^` \t]\+`"hs=s+1,he=e-1 contains=helpBacktick
-syn match helpCommand "\(^\|[^a-z"[]\)\zs`[^`]\+`\ze\([^a-z\t."']\|$\)"hs=s+1,he=e-1 contains=helpBacktick
+" doesn't allow a . directly after an ending backtick. See :helpgrep `[^`,]\+ [^`,]\+`\.
+syn match helpCommand "\(^\|[^a-z"[]\)\zs`[^`]\+`\ze\([^a-z\t."']\|[.?!]\?$\)"hs=s+1,he=e-1 contains=helpBacktick
syn match helpHeader "\s*\zs.\{-}\ze\s\=\~$" nextgroup=helpIgnore
syn match helpGraphic ".* \ze`$" nextgroup=helpIgnore
if has("conceal")