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 syntax scopes to themes #25323

Merged
merged 1 commit into from
Feb 21, 2025
Merged

Conversation

chbk
Copy link
Contributor

@chbk chbk commented Feb 21, 2025

Release Notes:

  • Added syntax scopes to themes

Supports:

Changes:

  • Adds highlighting rules for the following new scopes, using theme colors:

    • heading
    • namespace
    • selector
    • strikethrough
    • unit
  • Renames scopes that are no longer used in zed/crates/languages/src or zed/extensions to their new names:

    • punctuation.list_marker -> punctuation.markup
    • link_text -> link
    • link_uri -> link.url, as defined in the gitcommit grammar
    • text.literal -> raw

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Feb 21, 2025
@iamnbutler
Copy link
Member

Awesome, thanks for the contribution. Going to get this one running since the others rely on it :) Are you ready to merge this?

@chbk chbk marked this pull request as ready for review February 21, 2025 13:31
@chbk
Copy link
Contributor Author

chbk commented Feb 21, 2025

Yes, ready to merge. Thanks!

@iamnbutler iamnbutler merged commit 2f416ae into zed-industries:main Feb 21, 2025
14 checks passed
maxdeviant added a commit that referenced this pull request Feb 21, 2025
maxdeviant added a commit that referenced this pull request Feb 21, 2025
This reverts commit 2f416ae.

We shouldn't have merged this yet, as it currently breaks syntax
highlighting for some languages that haven't had their requisite changes
merged yet.

We also need to be aware of the impact this will have on downstream
themes.

@chbk We should bundle any changes to the themes with the specific
language highlights that depend on those changes (and if there are
multiple languages that need the same change then pick one language to
come first and then stack the rest of the changes on top of that).

Release Notes:

- Community: This is a revert of
#25323, so remove those notes
from the release notes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The user has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants