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

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

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

Visibility: public

Requested revision: ea01b926ea4925cccef09f77235c350d1cdc6791

Requested commit: ea01b926ea4925cccef09f77235c350d1cdc6791

Commit: ea01b926ea4925cccef09f77235c350d1cdc6791

Tree: 5d862614a4585aeedd545d82a3e80b0f0b141e4a

Author: Hadley99

Committer: GitHub

## Message

```
languages: Exclude angle brackets from rainbow bracket colorization for Javascript (#57063)

## Summary

Extends #51311 to JSX in JavaScript files, which uses the same
javascript grammar for both .js and .jsx.

## Changes

- Added (#set! rainbow.exclude) to the three angle bracket patterns in
crates/grammars/src/javascript/brackets.scm, matching the TSX fix in
#51311.

## 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.

Release Notes:

- Fixed angled brackets being included in rainbow bracket highlights for
JavaScript.
```

## Parents

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

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