# go: fix highlighting of brackets, variables, fields \(\#7276\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 79c1003b344ee513cf97ee8313c38c7c3f02c916

Requested commit: 79c1003b344ee513cf97ee8313c38c7c3f02c916

Commit: 79c1003b344ee513cf97ee8313c38c7c3f02c916

Tree: e6bb51eb75370547ada1ed9b2d9909b02f91a5bb

Author: Thorsten Ball

Committer: GitHub

## Message

```
go: fix highlighting of brackets, variables, fields (#7276)

This changes the highlighting of Go code to make it more similar to how
we highlight Rust

* normal variables have the normal color, vs. being highlighted. This
really stuck out.
* brackets are properly highlighted

It also brings it closer to Neovim's tree-sitter highlighting by
changing how struct fields are highlighted.



Release Notes:

- Improved highlighting of Go code by tuning highlighting of variables,
brackets, and struct fields.

## Before & After

![screenshot-2024-02-02-11 38
08@2x](https://github.com/zed-industries/zed/assets/1185253/a754f166-89c1-40e8-a8da-b63155180896)
```

## Parents

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

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