Fix indentations for expressions in C/C++ - #58740
Merged
Merged
Conversation
ChristopherBiscardi
approved these changes
Jun 9, 2026
ChristopherBiscardi
left a comment
Contributor
There was a problem hiding this comment.
This seems reasonable, thanks!
This was referenced Jun 18, 2026
Closed
This was referenced Jul 1, 2026
This was referenced Jul 10, 2026
jonx
pushed a commit
to jonx/zed-aros
that referenced
this pull request
Jul 17, 2026
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>
jolutz
pushed a commit
to jolutz/zed
that referenced
this pull request
Aug 8, 2026
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Skarminspelning.2026-06-06.kl.15.04.58.mov
Expected indentation behaviour:
Skarminspelning.2026-06-06.kl.15.06.44.mov
Release Notes: