gnu: Add tree-sitter-query.

* gnu/packages/tree-sitter.scm (tree-sitter-query): New variable.

Change-Id: I1c13d89e25dd43d242d3d96ced443846e556e503
Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
Ignacio Marmolejo 2025-09-28 10:49:07 -07:00 committed by Liliana Marie Prikler
parent 8fd05e3980
commit 3467c1c8c6
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -908,6 +908,17 @@ which will be used as a snippet in origin."
"https://github.com/neovim/tree-sitter-vimdoc"
#:license license:expat))
(define-public tree-sitter-query
(package
(inherit (tree-sitter-grammar "query"
"Query"
"0fbqwg7km4yqjq8p2fkj9hpy0sfnijnf1hsk34wsirlp3af3hc67"
"0.7.0"
#:repository-url
"https://github.com/tree-sitter-grammars/tree-sitter-query"))
(synopsis "Tree-sitter grammar for Tree-sitter's query language")
(description "This package provides Tree-sitter's query grammar.")))
(define* (python-tree-sitter-grammar pkg #:key tests?)
"Returns a package for Python bindings of a Tree-sitter grammar. PKG is a
package for a Tree-sitter grammar; its name will be used with python- prefix