mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
Merge pull request #35174 from janlazo/vim-8.2.0512
vim-patch:8.2.{307,512,1123,1555,1912,3602},9.0.1689
This commit is contained in:
@@ -326,7 +326,7 @@ struct ufunc {
|
||||
int uf_flags;
|
||||
int uf_calls; ///< nr of active calls
|
||||
bool uf_cleared; ///< func_clear() was already called
|
||||
garray_T uf_args; ///< arguments
|
||||
garray_T uf_args; ///< arguments, including optional arguments
|
||||
garray_T uf_def_args; ///< default argument expressions
|
||||
garray_T uf_lines; ///< function lines
|
||||
int uf_profiling; ///< true when func is being profiled
|
||||
|
||||
@@ -26,6 +26,9 @@ func Test_list_create()
|
||||
call assert_equal(10, x)
|
||||
endfunc
|
||||
|
||||
" This was allowed in legacy Vim script
|
||||
let s:list_with_spaces = [1 , 2 , 3]
|
||||
|
||||
" List slices
|
||||
func Test_list_slice()
|
||||
let l = [1, 'as''d', [1, 2, function("strlen")], {'a': 1},]
|
||||
@@ -340,6 +343,10 @@ func Test_dict()
|
||||
call assert_equal(#{g: x}, #{g:x})
|
||||
endfunc
|
||||
|
||||
" This was allowed in legacy Vim script
|
||||
let s:dict_with_spaces = {'one' : 1 , 'two' : 2 , 'three' : 3}
|
||||
let s:dict_with_spaces_lit = #{one : 1 , two : 2 , three : 3}
|
||||
|
||||
" Dictionary identity
|
||||
func Test_dict_identity()
|
||||
let lines =<< trim END
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user