Mercurial > vim
diff src/vim9compile.c @ 33996:6d33f47b71b8 v9.0.2182
patch 9.0.2182: Vim9: need a way to reserve future extension
Commit: https://github.com/vim/vim/commit/ff6f0d5c38e81f742e1161c1504fc6b8e45d9a1e
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Thu Dec 21 16:46:18 2023 +0100
patch 9.0.2182: Vim9: need a way to reserve future extension
Problem: Vim9: need a way to reserve future extension
Solution: reserve double underscore prefix for future use
(Yegappan Lakshmanan)
related: #13238
closes: #13742
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 21 Dec 2023 17:00:04 +0100 |
parents | 6c8fc0437865 |
children | ab6a70fad5b5 |
line wrap: on
line diff
--- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -2263,12 +2263,12 @@ compile_load_lhs_with_index(lhs_T *lhs, // "this.value": load "this" object and get the value at index for an // object or class member get the type of the member. // Also for "obj.value". - char_u *dot = vim_strchr(var_start, '.'); - if (dot == NULL) - { - semsg(_(e_missing_dot_after_object_str), lhs->lhs_name); - return FAIL; - } + char_u *dot = vim_strchr(var_start, '.'); + if (dot == NULL) + { + semsg(_(e_missing_dot_after_object_str), lhs->lhs_name); + return FAIL; + } class_T *cl = lhs->lhs_type->tt_class; type_T *type = oc_member_type(cl, TRUE, dot + 1, @@ -2295,12 +2295,12 @@ compile_load_lhs_with_index(lhs_T *lhs, else if (lhs->lhs_type->tt_type == VAR_CLASS) { // "<classname>.value": load class variable "classname.value" - char_u *dot = vim_strchr(var_start, '.'); - if (dot == NULL) - { - check_type_is_value(lhs->lhs_type); - return FAIL; - } + char_u *dot = vim_strchr(var_start, '.'); + if (dot == NULL) + { + check_type_is_value(lhs->lhs_type); + return FAIL; + } class_T *cl = lhs->lhs_type->tt_class; ocmember_T *m = class_member_lookup(cl, dot + 1,