view src/typemap @ 31871:e46f41a1b7c5 v9.0.1268

patch 9.0.1268: .clangd and .stylelintrc files don't get a filetype Commit: https://github.com/vim/vim/commit/9c51798a1f3b79ace5ae0551a8bb122025ac94ed Author: Mark Skelton <mdskelton99@gmail.com> Date: Tue Jan 31 18:57:17 2023 +0000 patch 9.0.1268: .clangd and .stylelintrc files don't get a filetype Problem: .clangd and .stylelintrc files don't get a filetype. Solution: Use yaml for .clangd and json for .stylelintrc files. (Mark Skelton, closes #11916)
author Bram Moolenaar <Bram@vim.org>
date Tue, 31 Jan 2023 20:00:07 +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}\")