#define preproc statement values in C using TSerror highlight?
OddBread opened this issue · comments
I'm not entirely sure why, but when using my lush theme, trying to use a define preproc causes the value i try to assign it to show up using whatever i set as 'TSerror' in config, as i am using treesitter alongside it. I have tried to use other theme, no matter if it was made with lush or not, the error goes away. I have no clue what i might have done to cause this, since nothing is defined to use the error color besides error themselves. I can send my lush config over if need be. here is what it looks like when using my theme.
Do you have treesitter enabled? Try :TSDisable highlight
.
Most likely the other scheme defines some specific C TS colorings while yours is falling back through some defaults which might link to TSError/Error.
Try poking at hi TSPreProc
, hi PreProc
etc and see what they say.
hi TSPreProc
links to PreProc, hi PreProc
says guifg=#7f8c54
, which seems normal. Disabling TS makes the error highlighting go away.
Not sure. You might have to post the code. I don't really think it's an internal lush thing as we just pass groups down and there is nothing special about TSPreProc, etc but perhaps there is a group linking issue or something.
here is my theme. Not too big of an issue if you can't figure out what's wrong with it, but i might as well send it just in case