]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(doc): Normalise heredoc end marker label at :help const
authorDoug Kearns <dougkearns@gmail.com>
Sun, 26 Oct 2025 18:44:19 +0000 (18:44 +0000)
committerChristian Brabandt <cb@256bit.org>
Sun, 26 Oct 2025 18:44:19 +0000 (18:44 +0000)
Match the name used at :help :let-heredoc, {endmarker}.

closes: #18638

Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/eval.txt

index 3ec387d1bf0ae0a77567d8123c7acedec20837b4..030f2c3f92cdea188ac270fb784778d9a066cf2c 100644 (file)
@@ -3307,8 +3307,9 @@ text...
                                   endif
                                END
 <                      Results in: ["if ok", "  echo 'done'", "endif"]
-                       The marker must line up with "let" and the indentation
-                       of the first line is removed from all the text lines.
+                       The end marker must line up with "let" and the
+                       indentation of the first line is removed from all the
+                       text lines.
                        Specifically: all the leading indentation exactly
                        matching the leading indentation of the first
                        non-empty text line is stripped from the input lines.
@@ -3401,10 +3402,10 @@ text...
 :cons[t] {var-name} = {expr1}
 :cons[t] [{name1}, {name2}, ...] = {expr1}
 :cons[t] [{name}, ..., ; {lastname}] = {expr1}
-:cons[t] {var-name} =<< [trim] [eval] {marker}
+:cons[t] {var-name} =<< [trim] [eval] {endmarker}
 text...
 text...
-{marker}
+{endmarker}
                        Similar to |:let|, but additionally lock the variable
                        after setting the value.  This is the same as locking
                        the variable with |:lockvar| just after |:let|, thus: >