view src/typemap @ 27336:9ef98290c41a v8.2.4196

patch 8.2.4196: various file types not recognized Commit: https://github.com/vim/vim/commit/428058ab3213e81531cbd7989f4267870f35d52e Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> Date: Sun Jan 23 17:09:05 2022 +0000 patch 8.2.4196: various file types not recognized Problem: Various file types not recognized. Solution: Add patterns to recognize more file types (closes https://github.com/vim/vim/issues/9607)
author Bram Moolenaar <Bram@vim.org>
date Sun, 23 Jan 2022 18:15: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}\")