view src/typemap @ 30174:3564cddda2a5 v9.0.0423

patch 9.0.0423: "for" and "while" not recognized after :vim9cmd and :legacy Commit: https://github.com/vim/vim/commit/9132426334a8c7e159db93ec1b08ed61ac600aae Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 9 13:27:59 2022 +0100 patch 9.0.0423: "for" and "while" not recognized after :vim9cmd and :legacy Problem: "for" and "while" not recognized after :vim9cmd and :legacy. (Emanuele Torre) Solution: Recognize all the command modifiers. (closes #11087) Add a test to check the list of modifiers.
author Bram Moolenaar <Bram@vim.org>
date Fri, 09 Sep 2022 14:30: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}\")