# Improve bogus brackets filtering \(\#60364\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 869d3579caa46a54d128621a2668d79f99cbea58

Requested commit: 869d3579caa46a54d128621a2668d79f99cbea58

Commit: 869d3579caa46a54d128621a2668d79f99cbea58

Tree: 790befe73f3f4edfa5cc008052f956e18227e9a1

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Improve bogus brackets filtering (#60364)

Closes https://github.com/zed-industries/zed/issues/59298

Left — before, right — after:

<img width="1604" height="1001" alt="Screenshot 2026-07-03 at 19 45 45"
src="https://github.com/user-attachments/assets/cc43b639-8fbe-4951-9da8-4b1e9482ca39"
/>

Release Notes:

- Fixed incorrect rainbow brackets highlights in certain cases
```

## Parents

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

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