]> granicus.if.org Git - vim/commitdiff
patch 9.0.1187: test for using imported class fails v9.0.1187
authorBram Moolenaar <Bram@vim.org>
Thu, 12 Jan 2023 20:39:09 +0000 (20:39 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 12 Jan 2023 20:39:09 +0000 (20:39 +0000)
Problem:    Test for using imported class fails.
Solution:   Skip over rest of type.

src/version.c
src/vim9type.c

index f702b36a3437d8e0f7f636ad0499857e0e764aa5..ee42263c3d029a97a6d55ea38dc7c507fca56546 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1187,
 /**/
     1186,
 /**/
index 9f95a8261c0ae32517835226bbed6f7048819218..6fb6b2b257e0f58782a7f0e49c0eb4b4d1b06c00 100644 (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;
            }
        }