view src/typemap @ 31796:e2fa5867a7bd v9.0.1230

patch 9.0.1230: Apache thrift files are not recognized Commit: https://github.com/vim/vim/commit/f3da4c8427b1b12d7aaffa307ec085ca97ea9ad9 Author: Amaan Qureshi <amaanq12@gmail.com> Date: Sun Jan 22 18:16:44 2023 +0000 patch 9.0.1230: Apache thrift files are not recognized Problem: Apache thrift files are not recognized. Solution: Add a pattern for thrift files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/11859)
author Bram Moolenaar <Bram@vim.org>
date Sun, 22 Jan 2023 19:30: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}\")