# theme_importer: Improve syntax token matching \(\#3549\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f272881a6b69efa7295aa85990c91af1f92c4cf3

Requested commit: f272881a6b69efa7295aa85990c91af1f92c4cf3

Commit: f272881a6b69efa7295aa85990c91af1f92c4cf3

Tree: 25d97d7360bce01de82095bc58c25570fa7b89b7

Author: Marshall Bowers

Committer: GitHub

## Message

```
theme_importer: Improve syntax token matching (#3549)

This PR improves the approach we use to match syntax tokens between Zed
and VS Code in the `theme_importer`.

We now use the list of scopes assigned to each Zed syntax token to rank
the possible candidates in the VS Code and then pick the candidate with
the highest rank.

So far this has proved to provide better colors across the board, but
we'll continue to refine the matching over time.

Release Notes:

- N/A
```

## Parents

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

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