1
0
forked from aniani/vim

patch 8.2.2444: Vim9: compile error with combination of operator and list

Problem:    Vim9: compile error with combination of operator and list.
Solution:   Generate constants before parsing a list or dict. (closes #7757)
This commit is contained in:
Bram Moolenaar
2021-01-31 21:47:42 +01:00
parent 80ad3e2569
commit e507ff15d5
3 changed files with 11 additions and 2 deletions

View File

@@ -1083,6 +1083,9 @@ def Test_expr5()
assert_equal('a0.123', 'a' .. 0.123)
endif
assert_equal(3, 1 + [2, 3, 4][0])
assert_equal(5, 2 + {key: 3}['key'])
set digraph
assert_equal('val: true', 'val: ' .. &digraph)
set nodigraph