Commit: runtime(vim): Update base-syntax, remove unused vimString region

2 views
Skip to first unread message

Christian Brabandt

unread,
Feb 14, 2024, 3:45:08 PM2/14/24
to vim...@googlegroups.com
runtime(vim): Update base-syntax, remove unused vimString region

Commit: https://github.com/vim/vim/commit/1633de8c35fd1941d849c7b6a4ffa34445c4234b
Author: Doug Kearns <dougk...@gmail.com>
Date: Wed Feb 14 21:28:44 2024 +0100

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: #14035

Signed-off-by: Doug Kearns <dougk...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/syntax/generator/vim.vim.base b/runtime/syntax/generator/vim.vim.base
index 37bc03a5c..cf4aedd9d 100644
--- a/runtime/syntax/generator/vim.vim.base
+++ b/runtime/syntax/generator/vim.vim.base
@@ -333,8 +333,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 +\(\\\|.\)\{-}[^\]"+
diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim
index a69dedc66..33cb7cc03 100644
--- a/runtime/syntax/vim.vim
+++ b/runtime/syntax/vim.vim
@@ -376,8 +376,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 +\(\\\|.\)\{-}[^\]"+
Reply all
Reply to author
Forward
0 new messages