view src/typemap @ 27972:9c0b7953016e v8.2.4511

patch 8.2.4511: filetype test fails Commit: https://github.com/vim/vim/commit/c12dc47b8f80c02e4fdcdb38b8217e1c06a11368 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 5 13:45:56 2022 +0000 patch 8.2.4511: filetype test fails Problem: Filetype test fails. Solution: Change "endw" to "endwhile".
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Mar 2022 15:00: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}\")