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

apply color to ifdef expressions #71

Open
jotego opened this issue Jan 2, 2024 · 1 comment
Open

apply color to ifdef expressions #71

jotego opened this issue Jan 2, 2024 · 1 comment

Comments

@jotego
Copy link

jotego commented Jan 2, 2024

I, for one, use a lot of ifdef statements to conditionally parse code in common files. So the ifdef expressions are quite common in some files:

imagen

Having the preprocessor words, those marked with a tick, highlighted would make the code more readable. This should apply to predefined preprocessor keywords but also to the macros you refer to with the tick.

Thank you

@TheClams
Copy link
Owner

This looks like an issue with the definition of your color scheme:
ifdef_highlight

You need to have colors associated to constant.other.preprocessor for the ifdef and support.variable for the variables.
You can check the doc on how to do tune your color scheme: https://www.sublimetext.com/docs/color_schemes.html

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