# rust: Improve highlighting within macros \(\#37049\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9a97f9465b08954ef3dc1729d3ad6abed0485620

Requested commit: 9a97f9465b08954ef3dc1729d3ad6abed0485620

Commit: 9a97f9465b08954ef3dc1729d3ad6abed0485620

Tree: 88a1e97fabc79701e4487e7114e42fe1b9135e20

Author: Finn Evers

Committer: GitHub

## Message

```
rust: Improve highlighting within macros (#37049)

This makes sure we do not apply the highlights for snake case
identifiers as well as paths for attributes too broadly to all types of
macros, which should make macros much more readable overall whilst
keeping the highlighting for the attribute items.

| Before | After |
| --- | --- |
| <img width="1414" height="958" alt="Bildschirmfoto 2025-08-28 um 00 37
58"
src="https://github.com/user-attachments/assets/1254b9a2-d07a-4be4-9b4f-555a7c640302"
/> | <img width="1414" height="958" alt="Bildschirmfoto 2025-08-28 um 00
37 38"
src="https://github.com/user-attachments/assets/5f6dd66c-5469-4f27-9f1d-0a6e6e8d8085"
/> |

Release Notes:

- rust: Improved highlighting within macros.
```

## Parents

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

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