summaryrefslogtreecommitdiffstats
path: root/runtime/doc
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-12 16:38:57 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-12 16:38:57 +0200
commit4fdae9996fb9a9bc1291a61e7b85cb360feb7599 (patch)
treedf24dd3ca0ab0120654db41a1a64d07bd9613795 /runtime/doc
parentacc770a10f65107131473ea2ab4ae5d429dfe172 (diff)
patch 8.2.0555: Vim9: line continuation is not always neededv8.2.0555
Problem: Vim9: line continuation is not always needed. Solution: Recognize continuation lines automatically in list and dict.
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/vim9.txt11
1 files changed, 11 insertions, 0 deletions
diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt
index 1337d4a6d3..b7b05b4974 100644
--- a/runtime/doc/vim9.txt
+++ b/runtime/doc/vim9.txt
@@ -175,6 +175,17 @@ When using `function()` the resulting type is "func", a function with any
number of arguments and any return type. The function can be defined later.
+Automatic line continuation ~
+
+In many cases it is obvious that an expression continues on the next line. In
+those cases there is no need to prefix the line with a backslash. For
+example, when a list spans multiple lines: >
+ let mylist = [
+ 'one',
+ 'two',
+ ]
+
+
No curly braces expansion ~
|curly-braces-names| cannot be used.