view src/typemap @ 20055:686deb5959c2 v8.2.0583

patch 8.2.0583: Vim9: # comment not recognized in :def function Commit: https://github.com/vim/vim/commit/cb711abf0f71d8c743cf73c76077f52e17732a8c Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 16 13:00:29 2020 +0200 patch 8.2.0583: Vim9: # comment not recognized in :def function Problem: Vim9: # comment not recognized in :def function. Solution: Recognize and skip # comment.
author Bram Moolenaar <Bram@vim.org>
date Thu, 16 Apr 2020 13:15:05 +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}\")