-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validate color schemes with Vim's check_colors script #130
Comments
(I edited your message to help addressing your points by their number)
|
Previous discussions regarding
Current PR: |
I think it already could be included. All the finishing touches we can fix along the way. |
FWIW, many of the failed checks were due to That check is probably too strict because highlight group names are case-insentive. |
Currently, Colortemplate doesn't try to reorder the highlight groups, so the output is always in source order. One difficulty in automating that stems from the fact that, in general, a template my contain arbitrary verbatim code blocks, so the order of declarations in the source is important. The by now mythical v3 will most likely deal with (3), however, by automatically sorting definitions (but not across verbatim blocks, which act as optimization fences). For now: it should always be possible to put |
Ah, and I agree with you about (1) and (4), so |
(1) is not an issue now (debugPC and debugBreakpoint are added to check_colors)? Except I couldn't find |
Likely a typo (should have been just |
I have checked a few color schemes with
check_colors.vim
, and they do not pass validation. I am not sure what the status of that script is (I am using Vim 8.2.2683), but I think that at least a few of the warnings need to be taken care of. For instance:debugBreakpoint
,diffAddeddebugPC
anddebugBreakpoint
be defined in a color scheme? If that is the case, then the check made by the script should be updated; otherwise, those highlight groups should be added to all color schemes.ColorColumn
'sguifg
, for example. There are other cases.Normal
is not the first highlight group. I do not remember why, but I think that it is important thatNormal
is defined first (I think it's explained somewhere in Vim's manual).check_colors
also complains aboutinit: No initialization
. I think that here it's the script that is at fault (probably, the check fort_Co
raises a false positive).I think that before merging the color schemes, they should validate. This may require updating
check_colors.vim
as well as performing some minor adjustments to the color schemes.The text was updated successfully, but these errors were encountered: