Mercurial > vim
comparison src/vim9.h @ 21826:ccad66ac6c3e v8.2.1462
patch 8.2.1462: Vim9: string slice not supported yet
Commit: https://github.com/vim/vim/commit/11107bab7ead9124f46a7ddf6aa3bb66b43a8246
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 15 21:10:16 2020 +0200
patch 8.2.1462: Vim9: string slice not supported yet
Problem: Vim9: string slice not supported yet.
Solution: Add support for string slicing.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 15 Aug 2020 21:15:04 +0200 |
parents | fcf978444298 |
children | af5db9b6d210 |
comparison
equal
deleted
inserted
replaced
21825:0db0640e16e0 | 21826:ccad66ac6c3e |
---|---|
115 ISN_COMPAREANY, | 115 ISN_COMPAREANY, |
116 | 116 |
117 // expression operations | 117 // expression operations |
118 ISN_CONCAT, | 118 ISN_CONCAT, |
119 ISN_STRINDEX, // [expr] string index | 119 ISN_STRINDEX, // [expr] string index |
120 ISN_STRSLICE, // [expr:expr] string slice | |
120 ISN_LISTINDEX, // [expr] list index | 121 ISN_LISTINDEX, // [expr] list index |
121 ISN_SLICE, // drop isn_arg.number items from start of list | 122 ISN_SLICE, // drop isn_arg.number items from start of list |
122 ISN_GETITEM, // push list item, isn_arg.number is the index | 123 ISN_GETITEM, // push list item, isn_arg.number is the index |
123 ISN_MEMBER, // dict[member] | 124 ISN_MEMBER, // dict[member] |
124 ISN_STRINGMEMBER, // dict.member using isn_arg.string | 125 ISN_STRINGMEMBER, // dict.member using isn_arg.string |