# language_core: Introduce fallback highlights \(\#52575\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4deb4008b8d6a8a68d22b607bd58ddeb3f35b153

Requested commit: 4deb4008b8d6a8a68d22b607bd58ddeb3f35b153

Commit: 4deb4008b8d6a8a68d22b607bd58ddeb3f35b153

Tree: d3c73b85929799cfe63a37d15470a44a844f7e9f

Author: Finn Evers

Committer: GitHub

## Message

```
language_core: Introduce fallback highlights (#52575)

Self-Review Checklist:

- [X] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [ ] Performance impact has been considered and is acceptable

Release Notes:

- Added the option for highlights from languages to specify fallbacks.
That means that if you have a pattern with the captures `@second.capture
@first.capture`, Zed will first try resolving a highlight from your
theme for the code fragment using the first capture, then look for the
second capture if no match for the first capture could be found.

---------

Co-authored-by: Kirill Bulatov <kirill@zed.dev>
```

## Parents

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

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