# editor: Use \`highlight_text\` to highlight matching brackets, fix unnecessary inlay hint highlighting \(\#36540\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 68f97d6069ad7f35929c2e0e2d7265bbc96c6e56

Requested commit: 68f97d6069ad7f35929c2e0e2d7265bbc96c6e56

Commit: 68f97d6069ad7f35929c2e0e2d7265bbc96c6e56

Tree: ab66cf47455aa0093f4081579641ccff794723df

Author: Sachith Shetty

Committer: GitHub

## Message

```
editor: Use `highlight_text` to highlight matching brackets, fix unnecessary inlay hint highlighting (#36540)

Closes #35981

Release Notes:

- Fixed bracket highlights overly including parts of inlays when
highlighting

Before -
<img width="1480" height="602" alt="Screenshot from 2025-08-19 17-15-06"
src="https://github.com/user-attachments/assets/8e6b5ed8-f133-4867-8352-ed93441fbd8b"
/>

After -
<img width="1480" height="602" alt="Screenshot from 2025-08-19 17-24-26"
src="https://github.com/user-attachments/assets/1314e54e-ecf9-4280-9d53-eed6e96e393f"
/>
```

## Parents

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

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