# editor: Add Python auto-indent test for same row bracket pair \(\#31473\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2a8242ac909ff5572d1ff5bb3e33ecb9337b456c

Requested commit: 2a8242ac909ff5572d1ff5bb3e33ecb9337b456c

Commit: 2a8242ac909ff5572d1ff5bb3e33ecb9337b456c

Tree: 2035dfd0045f9d4cb1f2e2b62cc7eb0ef8905d7a

Author: Smit Barmase

Committer: GitHub

## Message

```
editor: Add Python auto-indent test for same row bracket pair (#31473)

We [recently](https://github.com/zed-industries/zed/pull/31260) added a
condition which fixes certain edge cases detecting indent ranges when a
bracket pair is on the same row for suggested indent languages. This PR
adds a test for that so we don't regress in the future. Ref:
https://github.com/zed-industries/zed/issues/31362


https://github.com/zed-industries/zed/blob/f9592c6b9273738808210c3a2ab7a366258c7f71/crates/language/src/buffer.rs#L2910

Release Notes:

- N/A
```

## Parents

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

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