# languages: Fix detents case line after typing \`:\` in Python \(\#34017\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 38febed02d9341d9dc812c0895dc1144733ef94c

Requested commit: 38febed02d9341d9dc812c0895dc1144733ef94c

Commit: 38febed02d9341d9dc812c0895dc1144733ef94c

Tree: 285c6ca9fae71ea2c1ebb7faa1ce2e453b86eef7

Author: Smit Barmase

Committer: GitHub

## Message

```
languages: Fix detents case line after typing `:` in Python (#34017)

Closes #34002

`decrease_indent_patterns` should only contain mapping which are at same
indent level with each other, which is not true for `match` and `case`
mapping.

Caused in https://github.com/zed-industries/zed/pull/33370

Release Notes:

- N/A
```

## Parents

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

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