view src/typemap @ 25174:b32c83317492 v8.2.3123

patch 8.2.3123: Vim9: confusing error when using white space after option Commit: https://github.com/vim/vim/commit/1594f313452cf6ca88375d9c8f68605a9c3c8ab5 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 8 16:40:13 2021 +0200 patch 8.2.3123: Vim9: confusing error when using white space after option Problem: Vim9: confusing error when using white space after option, before one of "!&<". Solution: Give a specific error. (issue #8408)
author Bram Moolenaar <Bram@vim.org>
date Thu, 08 Jul 2021 16:45:04 +0200
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}\")