1
0
forked from aniani/vim

patch 8.1.1723: heredoc assignment has no room for new features

Problem:    Heredoc assignment has no room for new features. (FUJIWARA Takuya)
Solution:   Require the marker does not start with a lower case character.
            (closes #4705)
This commit is contained in:
Bram Moolenaar
2019-07-21 14:14:26 +02:00
parent 61343f0c44
commit 2458200729
4 changed files with 39 additions and 15 deletions

View File

@@ -11386,7 +11386,8 @@ This does NOT work: >
Like above, but append/add/subtract the value for each
|List| item.
*:let=<<* *:let-heredoc* *E990* *E991*
*:let=<<* *:let-heredoc*
*E990* *E991* *E172* *E221*
:let {var-name} =<< [trim] {marker}
text...
text...
@@ -11394,11 +11395,10 @@ text...
Set internal variable {var-name} to a List containing
the lines of text bounded by the string {marker}.
{marker} must not contain white space.
{marker} cannot start with a lower case character.
The last line should end only with the {marker} string
without any other character. Watch out for white
space after {marker}!
If {marker} is not supplied, then "." is used as the
default marker.
Without "trim" any white space characters in the lines
of text are preserved. If "trim" is specified before