# go: improve outline queries to get rid of whitespace \(\#7273\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 10cd978e932bac789910353b27cad3e440ada5c2

Requested commit: 10cd978e932bac789910353b27cad3e440ada5c2

Commit: 10cd978e932bac789910353b27cad3e440ada5c2

Tree: 6d89f177c90746957d6765b0b6ebc3ff21f473a9

Author: Thorsten Ball

Committer: GitHub

## Message

```
go: improve outline queries to get rid of whitespace (#7273)

This changes the Go `outline.scm` queries a bit so that we don't have
these stray whitespaces floating around. I'm sure there's more
improvements possible, but for now I think this makes it look less
wrong.

Release Notes:

- Improved outline and breadcrumbs for Go code.

## Before

![before](https://github.com/zed-industries/zed/assets/1185253/d2b93c41-639b-4819-b87e-d8456960c5a7)

## After

![after](https://github.com/zed-industries/zed/assets/1185253/1ff6efb1-75a4-487b-8947-f070073887d4)
```

## Parents

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

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