highlighter: vim9 script implementation of s:get_array

This commit is contained in:
Christian 2020-11-18 08:45:53 +01:00 committed by Christian Brabandt
parent 4d75c9940c
commit b152059a98
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -347,4 +347,7 @@ else
endif endif
return color return color
enddef enddef
def s:get_array(guifg: string, guibg: string, ctermfg: string, ctermbg: string, opts: list<string>): list<string> # {{{2
return [ guifg, guibg, ctermfg, ctermbg, empty(opts) ? '' : join(opts, ',') ]
enddef
endif endif