diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-03 11:03:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-03 11:03:49 +0200 |
| commit | 6891d8aeca9abc24314ad92cb0c669afa13a8769 (patch) | |
| tree | 27565ee941cd97515399964f5e22018817a9d022 /runtime/doc | |
| parent | 9d58a58980c666a3abf515a1dd6b813b13d2d5ae (diff) | |
| parent | 96a8b0ab787c7d7148eb4c9881fdb5e022996081 (diff) | |
| download | rneovim-6891d8aeca9abc24314ad92cb0c669afa13a8769.tar.gz rneovim-6891d8aeca9abc24314ad92cb0c669afa13a8769.tar.bz2 rneovim-6891d8aeca9abc24314ad92cb0c669afa13a8769.zip | |
Merge #9970 from janlazo/vim-8.1.0794
vim-patch:8.0.1708,8.1.{369,794,1242}
Diffstat (limited to 'runtime/doc')
| -rw-r--r-- | runtime/doc/repeat.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt index 23ae3458ea..0a552a1309 100644 --- a/runtime/doc/repeat.txt +++ b/runtime/doc/repeat.txt @@ -432,6 +432,16 @@ flag when defining the function, it is not relevant when executing it. > . :endfunction :set cpo-=C +< + *line-continuation-comment* +To add a comment in between the lines start with '\" '. Notice the space +after the double quote. Example: > + let array = [ + "\ first entry comment + \ 'first', + "\ second entry comment + \ 'second', + \ ] Rationale: Most programs work with a trailing backslash to indicate line @@ -440,6 +450,14 @@ Rationale: :map xx asdf\ < Therefore the unusual leading backslash is used. + Starting a comment in a continuation line results in all following + continuation lines to be part of the comment. Since it was like this + for a long time, when making it possible to add a comment halfway a + sequence of continuation lines, it was not possible to use \", since + that was a valid continuation line. Using '"\ ' comes closest, even + though it may look a bit weird. Requiring the space after the + backslash is to make it very unlikely this is a normal comment line. + ============================================================================== 5. Using Vim packages *packages* |