Skip to content
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

Add intermediate hl-Group target for "cmakeKW…" hl-Groups #25

Open
adrian5 opened this issue Mar 2, 2022 · 1 comment
Open

Add intermediate hl-Group target for "cmakeKW…" hl-Groups #25

adrian5 opened this issue Mar 2, 2022 · 1 comment

Comments

@adrian5
Copy link

adrian5 commented Mar 2, 2022

Currently, all cmakeKW… highlight groups link to ModeMsg.

It would be good if these instead targeted a common (virtual) hl-Group, e.g. cmakeKW, which can then be targeted by colorschemes independently of the unrelated ModeMsg highlight.

This approach isn't uncommon among other syntax files, e.g. in css.vim:

hi def link cssAnimationProp cssProp
hi def link cssBackgroundProp cssProp
hi def link cssBorderProp cssProp
hi def link cssBoxProp cssProp
" etc...

hi def link cssAnimationAttr cssAttr
hi def link cssBackgroundAttr cssAttr
hi def link cssBorderAttr cssAttr
hi def link cssBoxAttr cssAttr
" etc...

For cmake.vim that would mean:

hi def link cmakeKWExternalProject cmakeKW
hi def link cmakeKWadd_compile_definitions cmakeKW
hi def link cmakeKWadd_compile_options cmakeKW
hi def link cmakeKWadd_custom_command cmakeKW
" etc...

" Same default style as before, but colorschemes can now override cmakeKW independently of ModeMsg
hi def link cmakeKW ModeMsg 
@pboettch
Copy link
Owner

Feel free to make a PR for this request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants