Mercurial > vim
view src/typemap @ 11480:99ce30ac4226 v8.0.0623
patch 8.0.0623: error for invalid regexp is not very informative
commit https://github.com/vim/vim/commit/966e58e413ffa88af8d748e697aa2999571fcd7b
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 5 16:54:08 2017 +0200
patch 8.0.0623: error for invalid regexp is not very informative
Problem: The message "Invalid range" is used for multiple errors.
Solution: Add two more specific error messages. (Itchyny, Ken Hamada)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 05 Jun 2017 17:00:03 +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}\")