diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-04-12 20:55:20 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-04-12 20:55:20 +0200 |
commit | 9c7e6dd653b62f54324f3c00d69cb348d8611a9f (patch) | |
tree | 948d4c323c783bbae8cad54d04a8a06b8556fa6b /runtime | |
parent | e6085c53506e38d07334faa1002ee90b1933b128 (diff) |
patch 8.2.0562: Vim9: cannot split an expression into multiple linesv8.2.0562
Problem: Vim9: cannot split an expression into multiple lines.
Solution: Continue in next line after an operator.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/vim9.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt index c7286ecdf5..1d7aec9460 100644 --- a/runtime/doc/vim9.txt +++ b/runtime/doc/vim9.txt @@ -195,6 +195,18 @@ Function call: > arg2 ) +For binary operators iin expressions not in [], {} or () a line break is +possible AFTER the operators. For example: > + let text = lead .. + middle .. + end + let total = start + + end - + correction + let result = positive ? + PosFunc(arg) : + NegFunc(arg) + Note that "enddef" cannot be used at the start of a continuation line, it ends the current function. |