# outline: Fix nesting issue for variable declarations \(\#45797\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0e5b6a5f3ffafaf71d00a605b5fe1e728e024cbe

Requested commit: 0e5b6a5f3ffafaf71d00a605b5fe1e728e024cbe

Commit: 0e5b6a5f3ffafaf71d00a605b5fe1e728e024cbe

Tree: 9886395bda1b10d11db2002f09d10167a0f5686c

Author: Haojian Wu

Committer: GitHub

## Message

```
outline: Fix nesting issue for variable declarations (#45797)

Before:

<img width="665" height="116" alt="image"
src="https://github.com/user-attachments/assets/3c0b6ea4-f030-4fef-a0eb-8251ce16a651"
/>

After:

<img width="601" height="104" alt="image"
src="https://github.com/user-attachments/assets/31659c75-6f73-40e7-9d3b-c4ae99357b12"
/>

The fix is similar to https://github.com/zed-industries/zed/pull/36076.

Release Notes:

- Fix outline nesting issue for variable declarations in C++
```

## Parents

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

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