# Improve Rust macro highlighting \(\#28182\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7f868a2eff597be9e7db6a967ba6a5f987c3c5fc

Requested commit: 7f868a2eff597be9e7db6a967ba6a5f987c3c5fc

Commit: 7f868a2eff597be9e7db6a967ba6a5f987c3c5fc

Tree: d86240f66c84bb54ad977499fd95429576c0e9ab

Author: chbk

Committer: GitHub

## Message

````
Improve Rust macro highlighting (#28182)

Release Notes:

  - Improved Rust macro highlighting

| Zed 0.180.2 | With this PR |
| --- | --- |
|
![Image](https://github.com/user-attachments/assets/013c73b1-5eee-45b1-ba37-747563c1bc4b)
|
![Image](https://github.com/user-attachments/assets/57eb97e3-1ccc-4d58-9596-bb3decedc0f4)
|

```rust
macro_rules! square {
  ($e:expr) => { $e * $e };
}
```

- `$var`: `variable`
- `expr`: `type`
````

## Parents

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

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