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

css: sync some syntax highlight colors with language reference #401

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

Atomk
Copy link
Contributor

@Atomk Atomk commented Sep 24, 2024

The "new" colors come from the language reference and make it easier to read function names and to differentiate keywords from the rest of the code.

Here's an example with the second code block in this page:

Before After
image image

I think keywords should have a different color especially in the light theme, and operators need their own token class, but that's for another PR if syntax highlighting is something you are open to improve.

@kristoff-it kristoff-it merged commit 47206b8 into ziglang:main Sep 29, 2024
@Atomk Atomk deleted the fix-syntax-highlighting branch September 29, 2024 10:26
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.

2 participants