diff options
author | Bram Moolenaar <Bram@vim.org> | 2023-01-12 20:39:09 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2023-01-12 20:39:09 +0000 |
commit | 3ce33b120c6479dfc8f22c7cc8945b9ef54285b0 (patch) | |
tree | 9a6cbe560ffac26f7ca5278584a29c49048a4c7f | |
parent | 4059400993ff380414dce9b577eff0f8c86b7725 (diff) | |
download | vim-git-3ce33b120c6479dfc8f22c7cc8945b9ef54285b0.tar.gz |
patch 9.0.1187: test for using imported class failsv9.0.1187
Problem: Test for using imported class fails.
Solution: Skip over rest of type.
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/vim9type.c | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/version.c b/src/version.c index f702b36a3..ee42263c3 100644 --- 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, diff --git a/src/vim9type.c b/src/vim9type.c index 9f95a8261..6fb6b2b25 100644 --- a/src/vim9type.c +++ b/src/vim9type.c @@ -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; } } |