0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.1187: test for using imported class fails

Problem:    Test for using imported class fails.
Solution:   Skip over rest of type.
This commit is contained in:
Bram Moolenaar
2023-01-12 20:39:09 +00:00
parent 4059400993
commit 3ce33b120c
2 changed files with 7 additions and 0 deletions

View File

@@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1187,
/**/
1186,
/**/

View File

@@ -1310,7 +1310,12 @@ parse_type(char_u **arg, garray_T *type_gap, int give_error)
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;
}
}