view src/typemap @ 19987:9cbe7ba51ce5 v8.2.0549

patch 8.2.0549: user systemd files not recognized Commit: https://github.com/vim/vim/commit/3b922f11380c7dbf94ee45bc09d688b772d9707f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 12 12:54:52 2020 +0200 patch 8.2.0549: user systemd files not recognized Problem: User systemd files not recognized. Solution: Add filetype patterns. (Kevin Locke, closes https://github.com/vim/vim/issues/5914)
author Bram Moolenaar <Bram@vim.org>
date Sun, 12 Apr 2020 13:00:07 +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}\")