bwipe!
endfunc
+def Test_prop_add_vim9()
+ prop_type_add('comment', #{
+ highlight: 'Directory',
+ priority: 123,
+ start_incl: true,
+ end_incl: true,
+ combine: false,
+ })
+ prop_type_delete('comment')
+enddef
+
def Test_prop_remove_vim9()
new
call AddPropTypes()
di = dict_find(dict, (char_u *)"combine", -1);
if (di != NULL)
{
- if (tv_get_number(&di->di_tv))
+ if (tv_get_bool(&di->di_tv))
prop->pt_flags |= PT_FLAG_COMBINE;
else
prop->pt_flags &= ~PT_FLAG_COMBINE;
di = dict_find(dict, (char_u *)"start_incl", -1);
if (di != NULL)
{
- if (tv_get_number(&di->di_tv))
+ if (tv_get_bool(&di->di_tv))
prop->pt_flags |= PT_FLAG_INS_START_INCL;
else
prop->pt_flags &= ~PT_FLAG_INS_START_INCL;
di = dict_find(dict, (char_u *)"end_incl", -1);
if (di != NULL)
{
- if (tv_get_number(&di->di_tv))
+ if (tv_get_bool(&di->di_tv))
prop->pt_flags |= PT_FLAG_INS_END_INCL;
else
prop->pt_flags &= ~PT_FLAG_INS_END_INCL;