# Fix indentations for expressions in C/C\+\+ \(\#58740\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 308a1067ec88869b0932e4234a67aab9057ce81c

Requested commit: 308a1067ec88869b0932e4234a67aab9057ce81c

Commit: 308a1067ec88869b0932e4234a67aab9057ce81c

Tree: ceed18e9410a62bf0c69145cea69086b63cf20fa

Author: Helmer Nordström

Committer: GitHub

## Message

```
Fix indentations for expressions in C/C++ (#58740)

Indentations are not correctly handled for expressions in C/C++. To fix
this i have updated indents.scm for both C/C++, there could be more
languages which have this problem but i have only noticed it in these
languages.

Current indentation behaviour:


https://github.com/user-attachments/assets/2804d3a6-2dde-484b-b1f4-0a867801bc0c

Expected indentation behaviour:


https://github.com/user-attachments/assets/b1ebe840-7391-4f5d-bfe0-87d413f5dfe2

Release Notes:

- Improved indentation for C/C++ to be more consistent.

---------

Co-authored-by: Christopher Biscardi <chris@christopherbiscardi.com>
```

## Parents

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

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