mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.2034: Vim9: list unpack in for statement not compiled yet
Problem: Vim9: list unpack in for statement not compiled yet. Solution: Compile list unpack. (closes #7345)
This commit is contained in:
@@ -146,6 +146,7 @@ typedef enum {
|
||||
ISN_CMDMOD, // set cmdmod
|
||||
ISN_CMDMOD_REV, // undo ISN_CMDMOD
|
||||
|
||||
ISN_UNPACK, // unpack list into items, uses isn_arg.unpack
|
||||
ISN_SHUFFLE, // move item on stack up or down
|
||||
ISN_DROP // pop stack and discard value
|
||||
} isntype_T;
|
||||
@@ -284,6 +285,12 @@ typedef struct {
|
||||
cmdmod_T *cf_cmdmod; // allocated
|
||||
} cmod_T;
|
||||
|
||||
// arguments to ISN_UNPACK
|
||||
typedef struct {
|
||||
int unp_count; // number of items to produce
|
||||
int unp_semicolon; // last item gets list of remainder
|
||||
} unpack_T;
|
||||
|
||||
/*
|
||||
* Instruction
|
||||
*/
|
||||
@@ -321,6 +328,7 @@ struct isn_S {
|
||||
shuffle_T shuffle;
|
||||
put_T put;
|
||||
cmod_T cmdmod;
|
||||
unpack_T unpack;
|
||||
} isn_arg;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user