Mercurial > vim
diff runtime/doc/vim9.txt @ 20013:bf377a9ffccb v8.2.0562
patch 8.2.0562: Vim9: cannot split an expression into multiple lines
Commit: https://github.com/vim/vim/commit/9c7e6dd653b62f54324f3c00d69cb348d8611a9f
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 12 20:55:20 2020 +0200
patch 8.2.0562: Vim9: cannot split an expression into multiple lines
Problem: Vim9: cannot split an expression into multiple lines.
Solution: Continue in next line after an operator.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 12 Apr 2020 21:00:06 +0200 |
parents | 628011800942 |
children | c001ee73519a |
line wrap: on
line diff
--- 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.