mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.1.0219: Vim9: No enum support
Problem: No enum support Solution: Implement enums for Vim9 script (Yegappan Lakshmanan) closes: #14224 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
8ede7a0694
commit
3164cf8f12
@@ -3258,6 +3258,12 @@ exec_instructions(ectx_T *ectx)
|
||||
++tv->vval.v_object->obj_class->class_refcount;
|
||||
tv->vval.v_object->obj_refcount = 1;
|
||||
object_created(tv->vval.v_object);
|
||||
|
||||
// When creating an enum value object, initialize the name and
|
||||
// ordinal object variables.
|
||||
class_T *en = tv->vval.v_object->obj_class;
|
||||
if (IS_ENUM(en))
|
||||
enum_set_internal_obj_vars(en, tv->vval.v_object);
|
||||
break;
|
||||
|
||||
// execute Ex command line
|
||||
|
Reference in New Issue
Block a user