runtime(vim): Update base-syntax, remove unused vimString region
Commit:
https://github.com/vim/vim/commit/1633de8c35fd1941d849c7b6a4ffa34445c4234b
Author: Doug Kearns <[email protected]>
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
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 +\(\\\|.\)\{-}[^\]"+
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1raM7q-00F8A4-Mf%40256bit.org.