]> git.ipfire.org Git - thirdparty/vim.git/commit
CI: add Makefile target to verify default highlighting groups are present
authorChrist van Willegen <cvwillegen@gmail.com>
Fri, 21 Feb 2025 19:23:26 +0000 (20:23 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 21 Feb 2025 19:23:26 +0000 (20:23 +0100)
commit6a15942bc275dc59814f44064e2984b831f7a03d
tree5ada4ea1cf0c0b8569095663f4e9e0edd8de1ba2
parent41a6026f007facb1ada3ff2a63a054913432860c
CI: add Makefile target to verify default highlighting groups are present

When adding new highlight groups, one needs to make sure to also add a
"default link NewHlGroup ExistingHlGroup" in highlight.c code, so that
when resetting a color scheme the old color won't be left behind.

So add a Makefile in the 'ci' directory that verifies that all
documented '*hl-<groupname>' from the documentation are either reflected
in the source code, or belong to a list of 'known to be ignored'
highlight groups and let that check run as part of the CI test suite.

related: #16676
closes: #16678

Signed-off-by: Christ van Willegen <cvwillegen@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
.github/workflows/ci.yml
Filelist
ci/hlgroups.ignore [new file with mode: 0644]
ci/hlgroups.make [new file with mode: 0644]
ci/unlisted.make