comparison src/vim9.h @ 21393:320581a133d9 v8.2.1247

patch 8.2.1247: Vim9: cannot index a character in a string Commit: https://github.com/vim/vim/commit/bf9d8c3765a5255c0a0b577ca2e25d70a8bcb688 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 19 17:55:44 2020 +0200 patch 8.2.1247: Vim9: cannot index a character in a string Problem: Vim9: cannot index a character in a string. Solution: Add ISN_STRINDEX instruction. (closes https://github.com/vim/vim/issues/6478)
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 Jul 2020 18:00:04 +0200
parents 3f14e0d4a4dd
children 5cb6e676defd
comparison
equal deleted inserted replaced
21392:6b34289ace89 21393:320581a133d9
109 ISN_COMPAREFUNC, 109 ISN_COMPAREFUNC,
110 ISN_COMPAREANY, 110 ISN_COMPAREANY,
111 111
112 // expression operations 112 // expression operations
113 ISN_CONCAT, 113 ISN_CONCAT,
114 ISN_INDEX, // [expr] list index 114 ISN_STRINDEX, // [expr] string index
115 ISN_LISTINDEX, // [expr] list index
115 ISN_SLICE, // drop isn_arg.number items from start of list 116 ISN_SLICE, // drop isn_arg.number items from start of list
116 ISN_GETITEM, // push list item, isn_arg.number is the index 117 ISN_GETITEM, // push list item, isn_arg.number is the index
117 ISN_MEMBER, // dict[member] 118 ISN_MEMBER, // dict[member]
118 ISN_STRINGMEMBER, // dict.member using isn_arg.string 119 ISN_STRINGMEMBER, // dict.member using isn_arg.string
119 ISN_2BOOL, // convert value to bool, invert if isn_arg.number != 0 120 ISN_2BOOL, // convert value to bool, invert if isn_arg.number != 0