# vim: Implement text-based matching bracket logic for Vim '%' motion to correctly find pairs within comments \(\#45559\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 648d1de26b481d8b4c81a65d60648bb1c909f926

Requested commit: 648d1de26b481d8b4c81a65d60648bb1c909f926

Commit: 648d1de26b481d8b4c81a65d60648bb1c909f926

Tree: a20a013aa4b1a355757b680cdce5885a1ddfe7a3

Author: Rocky Shi

Committer: GitHub

## Message

```
vim: Implement text-based matching bracket logic for Vim '%' motion to correctly find pairs within comments (#45559)

Closes #25435

Release Notes:

- Improved vim's '%' motion to always fall back to text-based bracket
matching when language-aware matching fails
```

## Parents

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

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