summaryrefslogtreecommitdiff
path: root/src/vim9.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-07-19 17:55:44 +0200
committerBram Moolenaar <Bram@vim.org>2020-07-19 17:55:44 +0200
commitbf9d8c3765a5255c0a0b577ca2e25d70a8bcb688 (patch)
treed2f055157a14c8ddb1ff107379f04bba156f87b2 /src/vim9.h
parentb209750b5e907003568c20856215122670ee22d2 (diff)
downloadvim-git-bf9d8c3765a5255c0a0b577ca2e25d70a8bcb688.tar.gz
patch 8.2.1247: Vim9: cannot index a character in a stringv8.2.1247
Problem: Vim9: cannot index a character in a string. Solution: Add ISN_STRINDEX instruction. (closes #6478)
Diffstat (limited to 'src/vim9.h')
-rw-r--r--src/vim9.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vim9.h b/src/vim9.h
index 10f983ca9..39d36f973 100644
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -111,7 +111,8 @@ typedef enum {
// expression operations
ISN_CONCAT,
- ISN_INDEX, // [expr] list index
+ ISN_STRINDEX, // [expr] string index
+ ISN_LISTINDEX, // [expr] list index
ISN_SLICE, // drop isn_arg.number items from start of list
ISN_GETITEM, // push list item, isn_arg.number is the index
ISN_MEMBER, // dict[member]