# rust: Improve highlighting in derive macros \(\#37439\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6feae92616d473b0df61b6eb84cca3e8ea8115b6

Requested commit: 6feae92616d473b0df61b6eb84cca3e8ea8115b6

Commit: 6feae92616d473b0df61b6eb84cca3e8ea8115b6

Tree: 7b050680328ec88ea3f959122a17d018a8d4f266

Author: Finn Evers

Committer: GitHub

## Message

```
rust: Improve highlighting in derive macros (#37439)

Follow-up to https://github.com/zed-industries/zed/pull/37049

This fixes an issue where we would lose highlighting in derive macros if
one of the names was qualified.

| Before | After |
| --- | --- |
| <img width="886" height="398" alt="Bildschirmfoto 2025-09-03 um 10 39
25"
src="https://github.com/user-attachments/assets/dbc680e3-6ce3-4059-9934-9daa4c59d4a0"
/> | <img width="886" height="398" alt="Bildschirmfoto 2025-09-03 um 10
38 14"
src="https://github.com/user-attachments/assets/6e10df6f-5158-4bfd-81ab-8f2b384f1e99"
/> |


Release Notes:

- N/A
```

## Parents

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

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