runtime(help): fix end of sentence highlight in code examples
Commit:
https://github.com/vim/vim/commit/4bfb89996f227d5fbb4803f0d8dbd3105483b625
Author: Christian Brabandt <[email protected]>
Date: Wed Oct 16 21:58:17 2024 +0200
runtime(help): fix end of sentence highlight in code examples
closes: https://github.com/vim/vim/issues/15745
Co-authored-by: Danilo Rezende <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt
index 73d6458d5..d85e580f5 100644
--- a/runtime/doc/repeat.txt
+++ b/runtime/doc/repeat.txt
@@ -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`.
diff --git a/runtime/syntax/help.vim b/runtime/syntax/help.vim
index ff214e276..68f68c296 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 <[email protected]>
" 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 "`[^` ]\+`"hs=s+1,he=e-1 contains=helpBacktick
-syn match helpCommand "\(^\|[^a-z"[]\)\zs`[^`]\+`\ze\([^a-z
."']\|$\)"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
."']\|[.?!]\?$\)"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")
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1t1AQC-0045Sj-Dv%40256bit.org.