Mercurial > vim
diff src/testdir/test_vim9_script.vim @ 20023:c85d4e173cc9 v8.2.0567
patch 8.2.0567: Vim9: cannot put comments halfway expressions
Commit: https://github.com/vim/vim/commit/2c330432cfb12181c61d698b5459bfd73d2610df
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 13 14:41:35 2020 +0200
patch 8.2.0567: Vim9: cannot put comments halfway expressions
Problem: Vim9: cannot put comments halfway expressions.
Solution: Support # comments in many places.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 13 Apr 2020 14:45:04 +0200 |
parents | e9af5a09a55b |
children | 8fb1cf4c44d5 |
line wrap: on
line diff
--- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -983,10 +983,17 @@ def Test_automatic_line_continuation() } " comment assert_equal({'one': 1, 'two': 2, 'three': 3}, mydict) mydict = #{ - one: 1, " comment - two: - 2, - three: 3 " comment + one: 1, # comment + two: # comment + 2, # comment + three: 3 # comment + } + assert_equal(#{one: 1, two: 2, three: 3}, mydict) + mydict = #{ + one: 1, + two: + 2, + three: 3 } assert_equal(#{one: 1, two: 2, three: 3}, mydict)