view src/typemap @ 28265:67ef250562e5 v8.2.4658

patch 8.2.4658: org-mode files are not recognized Commit: https://github.com/vim/vim/commit/3a6f952cc87065a4cf1f6502b2054ba99fdf45ed Author: ranjithshegde <ranjithshegde@gmail.com> Date: Thu Mar 31 20:24:35 2022 +0100 patch 8.2.4658: org-mode files are not recognized Problem: Org-mode files are not recognized. Solution: Add patterns to recognize "org" files. (closes https://github.com/vim/vim/issues/10046)
author Bram Moolenaar <Bram@vim.org>
date Thu, 31 Mar 2022 21:30:03 +0200
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}\")