diff runtime/doc/vim9.txt @ 19999:844c7646f61b v8.2.0555

patch 8.2.0555: Vim9: line continuation is not always needed Commit: https://github.com/vim/vim/commit/4fdae9996fb9a9bc1291a61e7b85cb360feb7599 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 12 16:38:57 2020 +0200 patch 8.2.0555: Vim9: line continuation is not always needed Problem: Vim9: line continuation is not always needed. Solution: Recognize continuation lines automatically in list and dict.
author Bram Moolenaar <Bram@vim.org>
date Sun, 12 Apr 2020 16:45:03 +0200
parents 1908e92b02fd
children 628011800942
line wrap: on
line diff
--- a/runtime/doc/vim9.txt
+++ b/runtime/doc/vim9.txt
@@ -175,6 +175,17 @@ When using `function()` the resulting ty
 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.