Skip to main content
There should be a space after `"\`
Source Link
dedowsdi
  • 6.4k
  • 1
  • 19
  • 34

Since patch 8.1.0369 you can comment continuation lines. However, you must follow the "\ syntax:

let test_data = [
      "\ description in comment
      \ complicated_data0
      \
      "\ description in comment
      \ complicated_data1
      ...
      \ ]

Prior to that, you would need to split the list up into pieces:

" description in comment
let test_data = [
      \ 1,
      \ ]
" description in comment",
let test_data += [
      \ 2,
      \ ]

Since patch 8.1.0369 you can comment continuation lines. However, you must follow the "\ syntax:

let test_data = [
      "\ description in comment
      \ complicated_data0
      \
      "\ description in comment
      \ complicated_data1
      ...
      \ ]

Prior to that, you would need to split the list up into pieces:

" description in comment
let test_data = [
      \ 1,
      \ ]
" description in comment",
let test_data += [
      \ 2,
      \ ]

Since patch 8.1.0369 you can comment continuation lines. However, you must follow the "\ syntax:

let test_data = [
      "\ description in comment
      \ complicated_data0
      \
      "\ description in comment
      \ complicated_data1
      ...
      \ ]

Prior to that, you would need to split the list up into pieces:

" description in comment
let test_data = [
      \ 1,
      \ ]
" description in comment",
let test_data += [
      \ 2,
      \ ]
Fix order of `"\` to match the examples
Source Link
filbranden
  • 29.9k
  • 5
  • 28
  • 73

Since patch 8.1.0369 you can comment continuation lines. However, you must follow the \""\ syntax:

let test_data = [
      "\ description in comment
      \ complicated_data0
      \
      "\ description in comment
      \ complicated_data1
      ...
      \ ]

Prior to that, you would need to split the list up into pieces:

" description in comment
let test_data = [
      \ 1,
      \ ]
" description in comment",
let test_data += [
      \ 2,
      \ ]

Since patch 8.1.0369 you can comment continuation lines. However, you must follow the \" syntax:

let test_data = [
      "\ description in comment
      \ complicated_data0
      \
      "\ description in comment
      \ complicated_data1
      ...
      \ ]

Prior to that, you would need to split the list up into pieces:

" description in comment
let test_data = [
      \ 1,
      \ ]
" description in comment",
let test_data += [
      \ 2,
      \ ]

Since patch 8.1.0369 you can comment continuation lines. However, you must follow the "\ syntax:

let test_data = [
      "\ description in comment
      \ complicated_data0
      \
      "\ description in comment
      \ complicated_data1
      ...
      \ ]

Prior to that, you would need to split the list up into pieces:

" description in comment
let test_data = [
      \ 1,
      \ ]
" description in comment",
let test_data += [
      \ 2,
      \ ]
Source Link
Mass
  • 14.4k
  • 1
  • 23
  • 48

Since patch 8.1.0369 you can comment continuation lines. However, you must follow the \" syntax:

let test_data = [
      "\ description in comment
      \ complicated_data0
      \
      "\ description in comment
      \ complicated_data1
      ...
      \ ]

Prior to that, you would need to split the list up into pieces:

" description in comment
let test_data = [
      \ 1,
      \ ]
" description in comment",
let test_data += [
      \ 2,
      \ ]