mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
vim-patch:4bfb899: runtime(help): fix end of sentence highlight in code examples
closes: vim/vim#15745
4bfb89996f
Co-authored-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Danilo Rezende <returndanilo@users.noreply.github.com>
This commit is contained in:
@@ -979,9 +979,9 @@ For example, to profile the one_script.vim script file: >
|
|||||||
clear the profiling statistics and start profiling again.
|
clear the profiling statistics and start profiling again.
|
||||||
|
|
||||||
:prof[ile] pause
|
:prof[ile] pause
|
||||||
Don't profile until the following `:profile continue`. Can be
|
Stop profiling until the next `:profile continue` command.
|
||||||
used when doing something that should not be counted (e.g., an
|
Can be used when doing something that should not be counted
|
||||||
external command). Does not nest.
|
(e.g., an external command). Does not nest.
|
||||||
|
|
||||||
:prof[ile] continue
|
:prof[ile] continue
|
||||||
Continue profiling after `:profile pause`.
|
Continue profiling after `:profile pause`.
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: Vim help file
|
" Language: Vim help file
|
||||||
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
" 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>
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||||
|
|
||||||
" Quit when a (custom) syntax file was already loaded
|
" 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 helpOption "'t_..'"
|
||||||
syn match helpNormal "'ab'"
|
syn match helpNormal "'ab'"
|
||||||
syn match helpCommand "`[^` \t]\+`"hs=s+1,he=e-1 contains=helpBacktick
|
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 helpHeader "\s*\zs.\{-}\ze\s\=\~$" nextgroup=helpIgnore
|
||||||
syn match helpGraphic ".* \ze`$" nextgroup=helpIgnore
|
syn match helpGraphic ".* \ze`$" nextgroup=helpIgnore
|
||||||
if has("conceal")
|
if has("conceal")
|
||||||
|
Reference in New Issue
Block a user