view src/typemap @ 18926:50355c55519f v8.2.0024

patch 8.2.0024: filetype Rego not recognized Commit: https://github.com/vim/vim/commit/a4ce82fe2e990eb9eaabf6ad400e2a74cce50ce6 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Dec 19 15:57:42 2019 +0100 patch 8.2.0024: filetype Rego not recognized Problem: Filetype Rego not recognized. Solution: Add *.rego. (Matt Dunford, closes https://github.com/vim/vim/issues/5376)
author Bram Moolenaar <Bram@vim.org>
date Thu, 19 Dec 2019 16:00: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}\")