mirror of
https://github.com/neovim/neovim.git
synced 2026-08-04 06:38:44 +00:00
vim-patch:9.0.0409: #{g:x} was seen as a curly-braces expression
Problem: #{g:x} was seen as a curly-braces expression.
Solution: Do never see #{} as a curly-braces expression. (closes vim/vim#11075)
7c7e1e9b98
This commit is contained in:
@@ -168,6 +168,10 @@ func Test_dict()
|
||||
|
||||
" allow key starting with number at the start, not a curly expression
|
||||
call assert_equal({'1foo': 77}, #{1foo: 77})
|
||||
|
||||
" #{expr} is not a curly expression
|
||||
let x = 'x'
|
||||
call assert_equal(#{g: x}, #{g:x})
|
||||
endfunc
|
||||
|
||||
" Dictionary identity
|
||||
|
||||
Reference in New Issue
Block a user