Mercurial > vim
comparison runtime/doc/eval.txt @ 17450:509542f1fffb v8.1.1723
patch 8.1.1723: heredoc assignment has no room for new features
commit https://github.com/vim/vim/commit/24582007294b0db3be9669d3b583ea45fc4f19b8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 21 14:14:26 2019 +0200
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 21 Jul 2019 14:15:06 +0200 |
parents | ca8e754bdd53 |
children | e414281d8bb4 |
comparison
equal
deleted
inserted
replaced
17449:3f12449a6020 | 17450:509542f1fffb |
---|---|
11384 :let [{name}, ..., ; {lastname}] += {expr1} | 11384 :let [{name}, ..., ; {lastname}] += {expr1} |
11385 :let [{name}, ..., ; {lastname}] -= {expr1} | 11385 :let [{name}, ..., ; {lastname}] -= {expr1} |
11386 Like above, but append/add/subtract the value for each | 11386 Like above, but append/add/subtract the value for each |
11387 |List| item. | 11387 |List| item. |
11388 | 11388 |
11389 *:let=<<* *:let-heredoc* *E990* *E991* | 11389 *:let=<<* *:let-heredoc* |
11390 *E990* *E991* *E172* *E221* | |
11390 :let {var-name} =<< [trim] {marker} | 11391 :let {var-name} =<< [trim] {marker} |
11391 text... | 11392 text... |
11392 text... | 11393 text... |
11393 {marker} | 11394 {marker} |
11394 Set internal variable {var-name} to a List containing | 11395 Set internal variable {var-name} to a List containing |
11395 the lines of text bounded by the string {marker}. | 11396 the lines of text bounded by the string {marker}. |
11396 {marker} must not contain white space. | 11397 {marker} must not contain white space. |
11398 {marker} cannot start with a lower case character. | |
11397 The last line should end only with the {marker} string | 11399 The last line should end only with the {marker} string |
11398 without any other character. Watch out for white | 11400 without any other character. Watch out for white |
11399 space after {marker}! | 11401 space after {marker}! |
11400 If {marker} is not supplied, then "." is used as the | |
11401 default marker. | |
11402 | 11402 |
11403 Without "trim" any white space characters in the lines | 11403 Without "trim" any white space characters in the lines |
11404 of text are preserved. If "trim" is specified before | 11404 of text are preserved. If "trim" is specified before |
11405 {marker}, then indentation is stripped so you can do: > | 11405 {marker}, then indentation is stripped so you can do: > |
11406 let text =<< trim END | 11406 let text =<< trim END |