commit 304a9baebd10382cbc25c8008535f5c34734c7af
parent aa4fa2496387c962ee8b4cbd7720396ec7596dbd
Author: zeertzjq <zeertzjq@outlook.com>
Date: Tue, 3 Jun 2025 07:58:11 +0800
vim-patch:3993cd6: runtime(vim): Update base-syntax, bug fixes (#34288)
- Contain :profdel arguments.
- Fix string highlighting immediately after lambda -> operators.
Reported by Aliaksei Budavei.
closes: vim/vim#17427
https://github.com/vim/vim/commit/3993cd619a8148c4942d7b9d418af73909403a87
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim
@@ -806,8 +806,8 @@ syn region vimPatSepZone oneline contained matchgroup=vimPatSepZ start="\\%\
syn region vimPatRegion contained transparent matchgroup=vimPatSepR start="\\[z%]\=(" end="\\)" contains=@vimSubstList oneline
syn match vimNotPatSep contained "\\\\"
syn cluster vimStringGroup contains=vimEscape,vimEscapeBrace,vimPatSep,vimNotPatSep,vimPatSepErr,vimPatSepZone,@Spell
-syn region vimString oneline keepend matchgroup=vimString start=+[^a-zA-Z>\\@]"+lc=1 skip=+\\\\\|\\"+ matchgroup=vimStringEnd end=+"+ nextgroup=vimSubscript contains=@vimStringGroup extend
-syn region vimString oneline matchgroup=vimString start=+[^a-zA-Z>\\@]'+lc=1 end=+'+ nextgroup=vimSubscript contains=vimQuoteEscape extend
+syn region vimString oneline keepend matchgroup=vimString start=+[^a-zA-Z\\@]"+lc=1 skip=+\\\\\|\\"+ matchgroup=vimStringEnd end=+"+ nextgroup=vimSubscript contains=@vimStringGroup extend
+syn region vimString oneline matchgroup=vimString start=+[^a-zA-Z\\@]'+lc=1 end=+'+ nextgroup=vimSubscript contains=vimQuoteEscape extend
"syn region vimString oneline start="\s/\s*\A"lc=1 skip="\\\\\|\\+" end="/" contains=@vimStringGroup " see tst45.vim
syn match vimEscape contained "\\."
@@ -1348,9 +1348,9 @@ syn region vimProfilePattern contained
\ skipwhite nextgroup=vimCmdSep,vimComment,vim9Comment
syn match vimProfile "\<prof\%[ile]\>" skipwhite nextgroup=vimProfileBang,vimProfileArg
-syn keyword vimProfdelArg func skipwhite nextgroup=vimProfilePattern
-syn keyword vimProfdelArg file skipwhite nextgroup=vimProfilePattern
-syn keyword vimProfdelArg here skipwhite nextgroup=vimCmdSep,@vimComment
+syn keyword vimProfdelArg contained func skipwhite nextgroup=vimProfilePattern
+syn keyword vimProfdelArg contained file skipwhite nextgroup=vimProfilePattern
+syn keyword vimProfdelArg contained here skipwhite nextgroup=vimCmdSep,@vimComment
syn match vimProfdel "\<profd\%[el]\>" skipwhite nextgroup=vimProfdelArg
" Redir: {{{2