summaryrefslogtreecommitdiff
path: root/src/vim9.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-14 23:05:10 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-14 23:05:10 +0200
commit47a519a933e8bcaf703a5feaac5c01491a658ee3 (patch)
treee684ae57e04c729278f3248e9131768d8a957060 /src/vim9.h
parenta65d8b5bb9e9267c6e4500c67d26c839a64f30eb (diff)
downloadvim-git-47a519a933e8bcaf703a5feaac5c01491a658ee3.tar.gz
patch 8.2.0981: Vim9: cannot compile "[var, var] = list"v8.2.0981
Problem: Vim9: cannot compile "[var, var] = list". Solution: Implement list assignment.
Diffstat (limited to 'src/vim9.h')
-rw-r--r--src/vim9.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vim9.h b/src/vim9.h
index 27914af7e..66b088290 100644
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -112,6 +112,7 @@ typedef enum {
// expression operations
ISN_CONCAT,
ISN_INDEX, // [expr] list index
+ ISN_GETITEM, // push list item, isn_arg.number is the index
ISN_MEMBER, // dict[member]
ISN_STRINGMEMBER, // dict.member using isn_arg.string
ISN_2BOOL, // convert value to bool, invert if isn_arg.number != 0