# keymap_ui: Create language for Zed keybind context \(\#34558\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 58807f0dd2e54a623c82a078023b04bd54ad265b

Requested commit: 58807f0dd2e54a623c82a078023b04bd54ad265b

Commit: 58807f0dd2e54a623c82a078023b04bd54ad265b

Tree: ca509c34700556ecc6a25062dd95fa81b772014f

Author: Ben Kunkle

Committer: GitHub

## Message

```
keymap_ui: Create language for Zed keybind context (#34558)

Closes #ISSUE

Creates a new language in the languages crate for the DSL used in Zed
keybinding context. Previously, keybind context was highlighted as Rust
in the keymap UI due to the expression syntax of Rust matching that of
the context DSL, however, this had the side effect of highlighting upper
case contexts (e.g. `Editor`) however Rust types would be highlighted
based on the theme. By extracting only the necessary pieces of the Rust
language `highlights.scm`, `brackets.scm`, and `config.toml`, and
continuing to use the Rust grammar, we get a better result across
different themes

Release Notes:

- N/A *or* Added/Fixed/Improved ...
```

## Parents

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

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