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:
zeertzjq
2025-08-06 14:19:53 +08:00
committed by GitHub
3 changed files with 3385 additions and 4 deletions

View File

@@ -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

View File

@@ -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