runtime(vim): Update base-syntax, allow whitespace before :substitute pattern
Allow whitespace between the :substitute command and its pattern
argument. Although unusual, it is supported and there are examples in
the wild.
Match Vi compatible :substitute commands like :s\/{string}/. See :help
E1270.
fixes: #14920
closes: #14923
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
dca57fb542
commit
92f4e91590
@ -1,4 +1,4 @@
|
||||
*syntax.txt* For Vim version 9.1. Last change: 2024 May 31
|
||||
*syntax.txt* For Vim version 9.1. Last change: 2024 Jun 05
|
||||
|
||||
|
||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||
@ -3810,12 +3810,12 @@ embedded script highlighting they wish to have. >
|
||||
g:vimsyn_embed =~ 't' : support embedded tcl
|
||||
<
|
||||
By default, g:vimsyn_embed is a string supporting interpreters that your vim
|
||||
itself supports. Concatenate multiple characters to support multiple types
|
||||
of embedded interpreters; ie. g:vimsyn_embed= "mp" supports embedded mzscheme
|
||||
and embedded perl.
|
||||
itself supports. Concatenate the indicated characters to support multiple
|
||||
types of embedded interpreters; ie. g:vimsyn_embed = "mp" supports embedded
|
||||
mzscheme and embedded perl.
|
||||
*g:vimsyn_folding*
|
||||
|
||||
Some folding is now supported with syntax/vim.vim: >
|
||||
Some folding is now supported with when 'foldmethod' is set to "syntax": >
|
||||
|
||||
g:vimsyn_folding == 0 or doesn't exist: no syntax-based folding
|
||||
g:vimsyn_folding =~ 'a' : augroups
|
||||
@ -3828,8 +3828,12 @@ Some folding is now supported with syntax/vim.vim: >
|
||||
g:vimsyn_folding =~ 'P' : fold python script
|
||||
g:vimsyn_folding =~ 'r' : fold ruby script
|
||||
g:vimsyn_folding =~ 't' : fold tcl script
|
||||
let g:vimsyn_folding = 'acfhlmpPrt'
|
||||
<
|
||||
|
||||
By default, g:vimsyn_folding is unset. Concatenate the indicated characters
|
||||
to support folding of multiple syntax constructs; i.e.
|
||||
g:vimsyn_folding = "fh" will enable folding of both functions and heredocs.
|
||||
|
||||
*g:vimsyn_noerror*
|
||||
Not all error highlighting that syntax/vim.vim does may be correct; Vim script
|
||||
is a difficult language to highlight correctly. A way to suppress error
|
||||
|
||||
Reference in New Issue
Block a user