comparison src/vim9type.c @ 24606:a4fda40e0bb9 v8.2.2842

patch 8.2.2842: Vim9: skip argument to searchpair() is not compiled Commit: https://github.com/vim/vim/commit/f18332fb9e2e4208a97d800f096b02c6681780e7 Author: Bram Moolenaar <Bram@vim.org> Date: Fri May 7 17:55:55 2021 +0200 patch 8.2.2842: Vim9: skip argument to searchpair() is not compiled Problem: Vim9: skip argument to searchpair() is not compiled. Solution: Add VAR_INSTR.
author Bram Moolenaar <Bram@vim.org>
date Fri, 07 May 2021 18:00:04 +0200
parents 5c6ccab68d1e
children e61a2085c89b
comparison
equal deleted inserted replaced
24605:f5484f767f70 24606:a4fda40e0bb9
948 case VAR_FLOAT: 948 case VAR_FLOAT:
949 case VAR_STRING: 949 case VAR_STRING:
950 case VAR_BLOB: 950 case VAR_BLOB:
951 case VAR_JOB: 951 case VAR_JOB:
952 case VAR_CHANNEL: 952 case VAR_CHANNEL:
953 case VAR_INSTR:
953 break; // not composite is always OK 954 break; // not composite is always OK
954 case VAR_LIST: 955 case VAR_LIST:
955 case VAR_DICT: 956 case VAR_DICT:
956 return equal_type(type1->tt_member, type2->tt_member); 957 return equal_type(type1->tt_member, type2->tt_member);
957 case VAR_FUNC: 958 case VAR_FUNC:
1095 case VAR_BLOB: return "blob"; 1096 case VAR_BLOB: return "blob";
1096 case VAR_JOB: return "job"; 1097 case VAR_JOB: return "job";
1097 case VAR_CHANNEL: return "channel"; 1098 case VAR_CHANNEL: return "channel";
1098 case VAR_LIST: return "list"; 1099 case VAR_LIST: return "list";
1099 case VAR_DICT: return "dict"; 1100 case VAR_DICT: return "dict";
1101 case VAR_INSTR: return "instr";
1100 1102
1101 case VAR_FUNC: 1103 case VAR_FUNC:
1102 case VAR_PARTIAL: return "func"; 1104 case VAR_PARTIAL: return "func";
1103 } 1105 }
1104 return "unknown"; 1106 return "unknown";