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:
@@ -695,6 +695,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1187,
|
||||
/**/
|
||||
1186,
|
||||
/**/
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user