mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
runtime(vim): Update base-syntax, bug fixes
- Contain :profdel arguments. - Fix string highlighting immediately after lambda -> operators. Reported by Aliaksei Budavei. closes: #17427 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
3b9b95dc63
commit
3993cd619a
@ -2,7 +2,7 @@
|
||||
" Language: Vim script
|
||||
" Maintainer: Hirohito Higashi <h.east.727 ATMARK gmail.com>
|
||||
" Doug Kearns <dougkearns@gmail.com>
|
||||
" Last Change: 2025 Jun 01
|
||||
" Last Change: 2025 Jun 02
|
||||
" Former Maintainer: Charles E. Campbell
|
||||
|
||||
" DO NOT CHANGE DIRECTLY.
|
||||
@ -873,8 +873,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 "\\."
|
||||
@ -1415,9 +1415,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
|
||||
|
Reference in New Issue
Block a user