# rust: Highlight enum variants as types \(\#45546\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/73515d9ebdd6cdedf9ef3e14558d6c620ce9b3d0)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 73515d9ebdd6cdedf9ef3e14558d6c620ce9b3d0

Requested commit: 73515d9ebdd6cdedf9ef3e14558d6c620ce9b3d0

Commit: 73515d9ebdd6cdedf9ef3e14558d6c620ce9b3d0

Tree: 9221b42cc0c844545b40d82488d15cf41d568367

Author: Rocky Shi

Committer: GitHub

## Message

```
rust: Highlight enum variants as types (#45546)

Closes [#ISSUE](https://github.com/zed-industries/zed/issues/14489)

Release Notes:

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

Screenshot:

<img width="401" height="280" alt="image"
src="https://github.com/user-attachments/assets/cd67a576-3c41-452d-9c6b-b3c259cee556"
/>
```

## Parents

- [f1e87022a7c8ee31d3e05ce3d9401cdb1f1025ea](https://git.cafe/gitcafe/zed/commit/f1e87022a7c8ee31d3e05ce3d9401cdb1f1025ea?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/73515d9ebdd6cdedf9ef3e14558d6c620ce9b3d0?format=markdown)
