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

Added custom styling for preprocessor macros #430

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

thesw4rm
Copy link
Contributor

@thesw4rm thesw4rm commented Apr 3, 2024

The "PreProc" category has a group assigned to changing syntax colors, but not the style (bold, italic, etc). This is really useful for systems languages like C or Rust. For example, I cannot get use to show as bold when writing Rust.
image

Once it is fixed, I can make use bold, for example, like this.

image

Example with C using #include.

image
image

Fixes #429

Styles such as bold and italic can be defined for preprocessor macros.
Updated the default syntax group mapping, boilerplate config, and docs
to reflect these changes. Note: make docgen was not working for me so I
manually updated the documentation myself. Please advise if changes are
needed.
@EdenEast EdenEast merged commit ce0cdf8 into EdenEast:main Apr 12, 2024
7 of 8 checks passed
@thesw4rm thesw4rm deleted the bug/429 branch April 12, 2024 19:40
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

Successfully merging this pull request may close these issues.

bug: Cannot define styles on preprocessor macros
2 participants