view src/typemap @ 22353:889143dbe2cd v8.2.1725

patch 8.2.1725: not all Pascal files are recognized Commit: https://github.com/vim/vim/commit/44aaf5416e0121500dd52b7cab306d7618b4fe53 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 22 19:15:31 2020 +0200 patch 8.2.1725: not all Pascal files are recognized Problem: Not all Pascal files are recognized. Solution: Add filetype patterns. (Doug Kearns)
author Bram Moolenaar <Bram@vim.org>
date Tue, 22 Sep 2020 19:30:04 +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}\")