Mercurial > vim
view src/typemap @ 12255:d5710baf5cf7 v8.0.1007
patch 8.0.1007: no test for filetype detection for scripts
commit https://github.com/vim/vim/commit/cbe6944956d7c39176e8b15faa77f1c29eaf5c97
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 27 16:54:26 2017 +0200
patch 8.0.1007: no test for filetype detection for scripts
Problem: No test for filetype detection for scripts.
Solution: Add a first test file script filetype detection.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 27 Aug 2017 17:00: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}\")