Skip to content

Commit 4bfb899

Browse files
runtime(help): fix end of sentence highlight in code examples
closes: #15745 Co-authored-by: Danilo Rezende <returndanilo@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 5e53fca commit 4bfb899

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

runtime/doc/repeat.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*repeat.txt* For Vim version 9.1. Last change: 2024 Oct 05
1+
*repeat.txt* For Vim version 9.1. Last change: 2024 Oct 16
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1398,9 +1398,9 @@ For example, to profile the one_script.vim script file: >
13981398
clear the profiling statistics and start profiling again.
13991399

14001400
:prof[ile] pause
1401-
Don't profile until the following `:profile continue`. Can be
1402-
used when doing something that should not be counted (e.g., an
1403-
external command). Does not nest.
1401+
Stop profiling until the next `:profile continue` command.
1402+
Can be used when doing something that should not be counted
1403+
(e.g., an external command). Does not nest.
14041404

14051405
:prof[ile] continue
14061406
Continue profiling after `:profile pause`.

runtime/syntax/help.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim syntax file
22
" Language: Vim help file
33
" Maintainer: The Vim Project <https://github.com/vim/vim>
4-
" Last Change: 2024 Oct 08
4+
" Last Change: 2024 Oct 16
55
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
66

77
" Quit when a (custom) syntax file was already loaded
@@ -47,7 +47,8 @@ syn match helpOption "'[a-z]\{2,\}'"
4747
syn match helpOption "'t_..'"
4848
syn match helpNormal "'ab'"
4949
syn match helpCommand "`[^` \t]\+`"hs=s+1,he=e-1 contains=helpBacktick
50-
syn match helpCommand "\(^\|[^a-z"[]\)\zs`[^`]\+`\ze\([^a-z\t."']\|$\)"hs=s+1,he=e-1 contains=helpBacktick
50+
" doesn't allow a . directly after an ending backtick. See :helpgrep `[^`,]\+ [^`,]\+`\.
51+
syn match helpCommand "\(^\|[^a-z"[]\)\zs`[^`]\+`\ze\([^a-z\t."']\|[.?!]\?$\)"hs=s+1,he=e-1 contains=helpBacktick
5152
syn match helpHeader "\s*\zs.\{-}\ze\s\=\~$" nextgroup=helpIgnore
5253
syn match helpGraphic ".* \ze`$" nextgroup=helpIgnore
5354
if has("conceal")

0 commit comments

Comments
 (0)