# languages: Exclude angle brackets from rainbow bracket colorization for TSX \(\#51311\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 45072109221790776b03b686b6973dd7f8227cb0

Requested commit: 45072109221790776b03b686b6973dd7f8227cb0

Commit: 45072109221790776b03b686b6973dd7f8227cb0

Tree: 324a4ea30aebccd804d62964b743343f6618e772

Author: Jack

Committer: GitHub

## Message

```
languages: Exclude angle brackets from rainbow bracket colorization for TSX (#51311)

## Summary

Angle brackets in TSX (`<`, `>`, `/>`, `</`) are always paired with JSX
tag syntax — they don't indicate bracket nesting depth — so rainbow
colorization adds noise without useful information.

This mirrors #46808, which applied the same fix to the HTML extension.

## Changes

- Added `(#set! rainbow.exclude)` to all three angle bracket patterns in
`crates/languages/src/tsx/brackets.scm`

## Before / After

Before: angle brackets in JSX tags receive rainbow colors alongside
`{}`, `()`, `[]`, making every tag visually noisy.

After: only `{}`, `()`, and `[]` receive rainbow colors — angle brackets
are excluded, matching the HTML extension behavior.

> Screenshots: I don't have a built copy of Zed handy to attach — happy
to add one if a maintainer needs it before merging.

Release Notes:

- Removed rainbow bracket colorization for angled brackets within TSX.
```

## Parents

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

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