comparison src/vim9.h @ 20349:e29b2ec8d4d2 v8.2.0730

patch 8.2.0730: Vim9: Assignment to dict member does not work Commit: https://github.com/vim/vim/commit/1cc2a94f80ba982f83d1e2d37c4726867e36bd9f Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 10 19:10:31 2020 +0200 patch 8.2.0730: Vim9: Assignment to dict member does not work Problem: Vim9: Assignment to dict member does not work. Solution: Parse dict assignment. Implement getting dict member.
author Bram Moolenaar <Bram@vim.org>
date Sun, 10 May 2020 19:15:03 +0200
parents bc2c9ea94ec1
children 876e16c48bd1
comparison
equal deleted inserted replaced
20348:25253a43acdf 20349:e29b2ec8d4d2
46 ISN_STOREENV, // pop into environment variable isn_arg.string 46 ISN_STOREENV, // pop into environment variable isn_arg.string
47 ISN_STOREREG, // pop into register isn_arg.number 47 ISN_STOREREG, // pop into register isn_arg.number
48 // ISN_STOREOTHER, // pop into other script variable isn_arg.other. 48 // ISN_STOREOTHER, // pop into other script variable isn_arg.other.
49 49
50 ISN_STORENR, // store number into local variable isn_arg.storenr.stnr_idx 50 ISN_STORENR, // store number into local variable isn_arg.storenr.stnr_idx
51 ISN_STORELIST, // store into list, value/index/varable on stack
52 ISN_STOREDICT, // store into dictionary, value/index/variable on stack
51 53
52 ISN_UNLET, // unlet variable isn_arg.unlet.ul_name 54 ISN_UNLET, // unlet variable isn_arg.unlet.ul_name
53 ISN_UNLETENV, // unlet environment variable isn_arg.unlet.ul_name 55 ISN_UNLETENV, // unlet environment variable isn_arg.unlet.ul_name
54 56
55 // constants 57 // constants
108 ISN_COMPAREANY, 110 ISN_COMPAREANY,
109 111
110 // expression operations 112 // expression operations
111 ISN_CONCAT, 113 ISN_CONCAT,
112 ISN_INDEX, // [expr] list index 114 ISN_INDEX, // [expr] list index
113 ISN_MEMBER, // dict.member using isn_arg.string 115 ISN_MEMBER, // dict[member]
116 ISN_STRINGMEMBER, // dict.member using isn_arg.string
114 ISN_2BOOL, // convert value to bool, invert if isn_arg.number != 0 117 ISN_2BOOL, // convert value to bool, invert if isn_arg.number != 0
115 ISN_2STRING, // convert value to string at isn_arg.number on stack 118 ISN_2STRING, // convert value to string at isn_arg.number on stack
116 ISN_NEGATENR, // apply "-" to number 119 ISN_NEGATENR, // apply "-" to number
117 120
118 ISN_CHECKNR, // check value can be used as a number 121 ISN_CHECKNR, // check value can be used as a number