view src/typemap @ 23346:2060f53b7c17 v8.2.2216

patch 8.2.2216: Vim9: range with missing colon can be hard to spot Commit: https://github.com/vim/vim/commit/6e2c2c50bada4e3f5c7234902c0bdd64f66619ac Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 25 19:25:45 2020 +0100 patch 8.2.2216: Vim9: range with missing colon can be hard to spot Problem: Vim9: range with missing colon can be hard to spot. Solution: Include the start of the range in the error. (closes https://github.com/vim/vim/issues/7543)
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Dec 2020 19:30:03 +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}\")