mirror of
https://github.com/neovim/neovim.git
synced 2025-11-14 22:39:08 +00:00
vim-patch:8e600ad: runtime(doc): Normalise heredoc end marker label at :help const
Match the name used at :help :let-heredoc, {endmarker}.
closes: vim/vim#18638
8e600aded2
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
This commit is contained in:
@@ -2068,8 +2068,9 @@ text...
|
|||||||
endif
|
endif
|
||||||
END
|
END
|
||||||
< Results in: `["if ok", " echo 'done'", "endif"]`
|
< Results in: `["if ok", " echo 'done'", "endif"]`
|
||||||
The marker must line up with "let" and the indentation
|
The end marker must line up with "let" and the
|
||||||
of the first line is removed from all the text lines.
|
indentation of the first line is removed from all the
|
||||||
|
text lines.
|
||||||
Specifically: all the leading indentation exactly
|
Specifically: all the leading indentation exactly
|
||||||
matching the leading indentation of the first
|
matching the leading indentation of the first
|
||||||
non-empty text line is stripped from the input lines.
|
non-empty text line is stripped from the input lines.
|
||||||
@@ -2157,10 +2158,10 @@ text...
|
|||||||
:cons[t] {var-name} = {expr1}
|
:cons[t] {var-name} = {expr1}
|
||||||
:cons[t] [{name1}, {name2}, ...] = {expr1}
|
:cons[t] [{name1}, {name2}, ...] = {expr1}
|
||||||
:cons[t] [{name}, ..., ; {lastname}] = {expr1}
|
:cons[t] [{name}, ..., ; {lastname}] = {expr1}
|
||||||
:cons[t] {var-name} =<< [trim] [eval] {marker}
|
:cons[t] {var-name} =<< [trim] [eval] {endmarker}
|
||||||
text...
|
text...
|
||||||
text...
|
text...
|
||||||
{marker}
|
{endmarker}
|
||||||
Similar to |:let|, but additionally lock the variable
|
Similar to |:let|, but additionally lock the variable
|
||||||
after setting the value. This is the same as locking
|
after setting the value. This is the same as locking
|
||||||
the variable with |:lockvar| just after |:let|, thus: >
|
the variable with |:lockvar| just after |:let|, thus: >
|
||||||
|
|||||||
Reference in New Issue
Block a user