From 608f238bc69556c35cbbef8b51abd56df9b4e067 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 16 Feb 2024 19:00:57 +0800 Subject: vim-patch:1633de8c35fd runtime(vim): Update base-syntax, remove unused vimString region These were included with the initial release of the syntax file for Vim 5 and were probably intended to allow for syn-region start/skip/end patterns with a '!' or '+' delimiter. However, these cases are currently handled by the vimSynRegPat group. The removed patterns never match anywhere in the distributed runtime files and it is believed that this is generally true. closes: vim/vim#14035 https://github.com/vim/vim/commit/1633de8c35fd1941d849c7b6a4ffa34445c4234b Co-authored-by: Doug Kearns --- runtime/syntax/vim.vim | 2 -- 1 file changed, 2 deletions(-) (limited to 'runtime') diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim index 12b4fc5564..182326a817 100644 --- a/runtime/syntax/vim.vim +++ b/runtime/syntax/vim.vim @@ -322,8 +322,6 @@ syn match vimNotPatSep contained "\\\\" syn cluster vimStringGroup contains=vimEscape,vimEscapeBrace,vimPatSep,vimNotPatSep,vimPatSepErr,vimPatSepZone,@Spell syn region vimString oneline keepend start=+[^a-zA-Z>!\\@]"+lc=1 skip=+\\\\\|\\"+ matchgroup=vimStringEnd end=+"+ contains=@vimStringGroup syn region vimString oneline keepend start=+[^a-zA-Z>!\\@]'+lc=1 end=+'+ -syn region vimString oneline start=+=!+lc=1 skip=+\\\\\|\\!+ end=+!+ contains=@vimStringGroup -syn region vimString oneline start="=+"lc=1 skip="\\\\\|\\+" end="+" contains=@vimStringGroup "syn region vimString oneline start="\s/\s*\A"lc=1 skip="\\\\\|\\+" end="/" contains=@vimStringGroup " see tst45.vim syn match vimString contained +"[^"]*\\$+ skipnl nextgroup=vimStringCont syn match vimStringCont contained +\(\\\\\|.\)\{-}[^\\]"+ -- cgit