0
0
mirror of https://github.com/vim/vim.git synced 2025-10-01 04:54:07 -04:00

patch 8.2.2393: Vim9: error message when script line starts with "[{"

Problem:    Vim9: error message when script line starts with "[{".
Solution:   Do not give an error for checking for end of list.
This commit is contained in:
Bram Moolenaar
2021-01-22 22:06:56 +01:00
parent 402115f1c2
commit 4bce26bb70
3 changed files with 10 additions and 1 deletions

View File

@@ -815,6 +815,12 @@ def Test_list_vimscript()
# comment 6
END
assert_equal(['# comment 1', 'two', '# comment 3', '', 'five', '# comment 6'], lines)
lines =<< trim END
[{
a: 0}]->string()->assert_equal("[{'a': 0}]")
END
CheckDefAndScriptSuccess(lines)
enddef
if has('channel')