Mercurial > vim
view src/typemap @ 23050:50442f932ff7 v8.2.2071
patch 8.2.2071: Vim9: list assign doesn't except empty remainder list
Commit: https://github.com/vim/vim/commit/da7c20c9531739bdefa9d4418e6765fb181066e9
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Nov 30 21:12:19 2020 +0100
patch 8.2.2071: Vim9: list assign doesn't except empty remainder list
Problem: Vim9: list assign doesn't except empty remainder list.
Solution: Recognize list assignment with ";".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 30 Nov 2020 21:15:04 +0100 |
parents | dec4338a7da2 |
children |
line wrap: on
line source
TYPEMAP VIWIN T_VIOBJNOMUNGE VIBUF T_VIOBJNOMUNGE INPUT T_VIOBJNOMUNGE if (sv_isa($arg, \"${ntype}\")) { IV tmp = SvIV((SV*)SvRV($arg)); $var = INT2PTR($type, tmp); if (!tmp) croak(\"$ntype no longer exists\"); } else croak(\"$var is not of type ${ntype}\")