view src/typemap @ 15152:1ef429366fd4 v8.1.0586

patch 8.1.0586: :digraph output is not easy to read commit https://github.com/vim/vim/commit/eae8ae1b2b4e532b125077d9838b70d966891be3 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 14 18:53:02 2018 +0100 patch 8.1.0586: :digraph output is not easy to read Problem: :digraph output is not easy to read. Solution: Add highlighting for :digraphs. (Marcin Szamotulski, closes https://github.com/vim/vim/issues/3572) Also add section headers for :digraphs!.
author Bram Moolenaar <Bram@vim.org>
date Fri, 14 Dec 2018 19:00:05 +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}\")