1
0
forked from aniani/vim

patch 8.2.3578: manipulating highlighting is complicated

Problem:    Manipulating highlighting is complicated.
Solution:   Add the hlget() and hlset() functions. (Yegappan Lakshmanan,
            closes #9039)
This commit is contained in:
Yegappan Lakshmanan
2021-11-03 21:56:45 +00:00
committed by Bram Moolenaar
parent 0f0044125c
commit d1a8d658e1
9 changed files with 724 additions and 0 deletions

View File

@@ -1527,6 +1527,10 @@ static funcentry_T global_functions[] =
ret_number, f_hlID},
{"hlexists", 1, 1, FEARG_1, arg1_string,
ret_number_bool, f_hlexists},
{"hlget", 0, 2, FEARG_1, arg2_string_bool,
ret_list_dict_any, f_hlget},
{"hlset", 1, 1, FEARG_1, arg1_list_any,
ret_number_bool, f_hlset},
{"hostname", 0, 0, 0, NULL,
ret_string, f_hostname},
{"iconv", 3, 3, FEARG_1, arg3_string,