diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-02-16 19:00:57 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2024-02-16 19:06:10 +0800 |
commit | 608f238bc69556c35cbbef8b51abd56df9b4e067 (patch) | |
tree | fc2dd658dcacf43f14be013350a5849c6ba70b21 /runtime/syntax/vim.vim | |
parent | 18dfe175e750821f62d50bbe7ea49889704be70c (diff) | |
download | rneovim-608f238bc69556c35cbbef8b51abd56df9b4e067.tar.gz rneovim-608f238bc69556c35cbbef8b51abd56df9b4e067.tar.bz2 rneovim-608f238bc69556c35cbbef8b51abd56df9b4e067.zip |
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 <dougkearns@gmail.com>
Diffstat (limited to 'runtime/syntax/vim.vim')
-rw-r--r-- | runtime/syntax/vim.vim | 2 |
1 files changed, 0 insertions, 2 deletions
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 +\(\\\\\|.\)\{-}[^\\]"+ |