view src/typemap @ 27326:234516a43f33 v8.2.4191

patch 8.2.4191: json5 files are not recognized Commit: https://github.com/vim/vim/commit/e15ebeffb35da4bb7d9054358671735ce6988c28 Author: =?UTF-8?q?Dundar=20G=C3=B6c?= <gocdundar@gmail.com> Date: Sun Jan 23 13:05:39 2022 +0000 patch 8.2.4191: json5 files are not recognized Problem: json5 files are not recognized. Solution: Add a pattern for json5 files. (closes https://github.com/vim/vim/issues/9601)
author Bram Moolenaar <Bram@vim.org>
date Sun, 23 Jan 2022 14: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}\")