Mercurial > vim
changeset 31710:50241d494268 v9.0.1187
patch 9.0.1187: test for using imported class fails
Commit: https://github.com/vim/vim/commit/3ce33b120c6479dfc8f22c7cc8945b9ef54285b0
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 12 20:39:09 2023 +0000
patch 9.0.1187: test for using imported class fails
Problem: Test for using imported class fails.
Solution: Skip over rest of type.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 12 Jan 2023 21:45:04 +0100 |
parents | 93f30cb659bc |
children | 860f8db33d1b |
files | src/version.c src/vim9type.c |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1187, +/**/ 1186, /**/ 1185,
--- a/src/vim9type.c +++ b/src/vim9type.c @@ -1310,7 +1310,12 @@ parse_type(char_u **arg, garray_T *type_ type->tt_type = VAR_OBJECT; type->tt_member = (type_T *)tv.vval.v_class; clear_tv(&tv); + *arg += len; + // Skip over ".ClassName". + while (ASCII_ISALNUM(**arg) || **arg == '_' || **arg == '.') + ++*arg; + return type; } }