# task: Allow obtaining custom task variables from tree-sitter queries \(\#11624\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bff1d8b1421c27fe37e39b34ff7d91a31693eaeb

Requested commit: bff1d8b1421c27fe37e39b34ff7d91a31693eaeb

Commit: bff1d8b1421c27fe37e39b34ff7d91a31693eaeb

Tree: d0c4cb4438fdfd9798c1a62ade140206c300f0c2

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
task: Allow obtaining custom task variables from tree-sitter queries (#11624)

From now on, only top-level captures are treated as runnable tags and
the rest is appended to task context as custom environmental variables
(unless the name is prefixed with _, in which case the capture is
ignored). This is most likely gonna help with Pest-like test runners.



Release Notes:

- N/A

---------

Co-authored-by: Remco <djsmits12@gmail.com>
```

## Parents

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

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