view src/typemap @ 27493:3af3dee7e5d9 v8.2.4274

patch 8.2.4274: Basic and form filetype detection is incomplete Commit: https://github.com/vim/vim/commit/c570e9cf68c0fe30366e82c96be460047dd659b9 Author: Doug Kearns <dougkearns@gmail.com> Date: Mon Jan 31 17:09:14 2022 +0000 patch 8.2.4274: Basic and form filetype detection is incomplete Problem: Basic and form filetype detection is incomplete. Solution: Add a separate function for .frm files. (Doug Kearns, closes https://github.com/vim/vim/issues/9675)
author Bram Moolenaar <Bram@vim.org>
date Mon, 31 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}\")