# Add logging of missing or unexpected capture names in Tree-sitter queries \(\#37830\) · gitcafe/zed

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

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

Visibility: public

Requested revision: cd2ecbbd27c3bfdc38c4d20cc5a73220218e4a4f

Requested commit: cd2ecbbd27c3bfdc38c4d20cc5a73220218e4a4f

Commit: cd2ecbbd27c3bfdc38c4d20cc5a73220218e4a4f

Tree: c538df6daa1371032cd97781ba043399ae57846c

Author: Michael Sloan

Committer: GitHub

## Message

```
Add logging of missing or unexpected capture names in Tree-sitter queries (#37830)

Now logs warnings for unrecognized capture names and logs errors for
missing required captures.

Release Notes:

- N/A

---------

Co-authored-by: Max <max@zed.dev>
```

## Parents

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

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