Skip to content

rust: Highlight enum variants as types#45546

Merged
osiewicz merged 1 commit intozed-industries:mainfrom
tacshi:fix/enum_highlight
Jan 22, 2026
Merged

rust: Highlight enum variants as types#45546
osiewicz merged 1 commit intozed-industries:mainfrom
tacshi:fix/enum_highlight

Conversation

@tacshi
Copy link
Copy Markdown
Contributor

@tacshi tacshi commented Dec 23, 2025

Closes #ISSUE

Release Notes:

  • Fix Rust enum variants with no lower-case highlighted as constants

Screenshot:

image

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 23, 2025
@maxdeviant maxdeviant changed the title fix(rust): highlight enum variants as types rust: Highlight enum variants as types Dec 23, 2025
@zed-industries-bot
Copy link
Copy Markdown
Contributor

Messages
📖

This PR includes links to the following GitHub Issues: #14489
If this PR aims to close an issue, please include a Closes #ISSUE line at the top of the PR body.

Generated by 🚫 dangerJS against 378e932

@osiewicz osiewicz merged commit 73515d9 into zed-industries:main Jan 22, 2026
25 checks passed
@tacshi tacshi deleted the fix/enum_highlight branch January 22, 2026 11:58
SomeoneToIgnore pushed a commit that referenced this pull request Jan 31, 2026
Improve #45546, by changing the capture to be variant instead of type.

Release Notes:

- Improved Rust enum variant highlighting as variant instead of type.

Before (note variants have the same style as `Foo`):
<img width="276" height="162" alt="image"
src="https://github.com/user-attachments/assets/fa0d8f48-a286-4a8d-b89d-269cb1657e55"
/>

After:
<img width="276" height="162" alt="image"
src="https://github.com/user-attachments/assets/c442494a-7550-481a-a8b9-f2d944a67868"
/>
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.

Rust: Enum Variants with no lower-case highlighted as constants

4 participants