mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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>
This commit is contained in:
committed by
Christian Brabandt
parent
cc944b1452
commit
ff6f0d5c38
@@ -2263,12 +2263,12 @@ compile_load_lhs_with_index(lhs_T *lhs, char_u *var_start, cctx_T *cctx)
|
||||
// "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, char_u *var_start, cctx_T *cctx)
|
||||
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,
|
||||
|
Reference in New Issue
Block a user