]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(help): fix end of sentence highlight in code examples
authorChristian Brabandt <cb@256bit.org>
Wed, 16 Oct 2024 19:58:17 +0000 (21:58 +0200)
committerChristian Brabandt <cb@256bit.org>
Wed, 16 Oct 2024 19:59:50 +0000 (21:59 +0200)
closes: #15745

Co-authored-by: Danilo Rezende <returndanilo@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/repeat.txt
runtime/syntax/help.vim

index 73d6458d5525279b4fea441d9ea59e7bcdfdaf45..d85e580f51ce3d622c9389873a07d58f12955fa9 100644 (file)
@@ -1,4 +1,4 @@
-*repeat.txt*    For Vim version 9.1.  Last change: 2024 Oct 05
+*repeat.txt*    For Vim version 9.1.  Last change: 2024 Oct 16
 
 
                  VIM REFERENCE MANUAL    by Bram Moolenaar
@@ -1398,9 +1398,9 @@ For example, to profile the one_script.vim script file: >
                clear the profiling statistics and start profiling again.
 
 :prof[ile] pause
-               Don't profile until the following `:profile continue`.  Can be
-               used when doing something that should not be counted (e.g., an
-               external command).  Does not nest.
+               Stop profiling until the next `:profile continue` command.
+               Can be used when doing something that should not be counted
+               (e.g., an external command).  Does not nest.
 
 :prof[ile] continue
                Continue profiling after `:profile pause`.
index ff214e2768c61bb30eaacd100253696adf922dc3..68f68c29604e6b20989ca34a4e3aad5c8b25694e 100644 (file)
@@ -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
@@ -47,7 +47,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")