Update runtime files

This commit is contained in:
Bram Moolenaar
2022-08-19 17:15:35 +01:00
parent 13ed494bb5
commit e80086446c
35 changed files with 1340 additions and 2458 deletions

View File

@ -6,10 +6,23 @@ vim9script
def Test_check_colors()
const savedview = winsaveview()
cursor(1, 1)
var err = {}
# err is
# {
# colors_name: "message",
# init: "message",
# background: "message",
# ....etc
# highlight: {
# 'Normal': "Missing ...",
# 'Conceal': "Missing ..."
# ....etc
# }
# }
var err: dict<any> = {}
# 1) Check g:colors_name is existing
if !search('\<\%(g:\)\?colors_name\>', 'cnW')
if search('\<\%(g:\)\?colors_name\>', 'cnW') == 0
err['colors_name'] = 'g:colors_name not set'
else
err['colors_name'] = 'OK'
@ -180,11 +193,12 @@ def Test_check_colors()
Result(err)
enddef
def Result(err: any)
def Result(err: dict<any>)
var do_groups: bool = v:false
echohl Title | echomsg "---------------" | echohl Normal
for key in sort(keys(err))
if key is 'highlight'
if key == 'highlight'
do_groups = !empty(err[key])
continue
else