view src/typemap @ 18707:e190e64d253b v8.1.2345

patch 8.1.2345: .cjs files are not recognized as Javascript Commit: https://github.com/vim/vim/commit/c1faf3dc3879e8a5e486f31445b5a5753dcbc6a3 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 26 13:43:40 2019 +0100 patch 8.1.2345: .cjs files are not recognized as Javascript Problem: .cjs files are not recognized as Javascript. Solution: Add the *.cjs pattern. (closes https://github.com/vim/vim/issues/5268)
author Bram Moolenaar <Bram@vim.org>
date Tue, 26 Nov 2019 13:45:05 +0100
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}\")