Metadata-Version: 2.4
Name: rbtr-lang-tree-sitter-query
Version: 2026.9.0.dev3
Summary: rbtr — tree-sitter query (.scm) language plugin
Keywords: code-search,code-index,tree-sitter,static-analysis,semantic-search,developer-tools,tree-sitter-query
Author: Alejandro Giacometti
Author-email: Alejandro Giacometti <alejandro.giacometti@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Text Processing :: Indexing
Classifier: Typing :: Typed
Requires-Dist: rbtr==2026.9.0.dev3
Requires-Dist: tree-sitter-query
Requires-Python: >=3.13
Project-URL: Homepage, https://github.com/janrito/rbtr
Project-URL: Repository, https://github.com/janrito/rbtr
Project-URL: Documentation, https://github.com/janrito/rbtr/tree/main/packages/rbtr-lang-tree-sitter-query#readme
Project-URL: Issues, https://github.com/janrito/rbtr/issues
Project-URL: Changelog, https://github.com/janrito/rbtr/releases
Description-Content-Type: text/markdown

# rbtr-lang-tree-sitter-query

tree-sitter query (`.scm`) support for [rbtr]. Optional plugin —
install with `pip install rbtr[tree_sitter_query]`.

[rbtr]: https://github.com/janrito/rbtr/tree/main/packages/rbtr#readme

## What it ingests

`.scm` files — the tree-sitter query language rbtr's own plugins are written
in, and which third-party grammars ship too (`tags.scm`, `highlights.scm`,
`injections.scm`), so cloned repos are covered. Each top-level pattern becomes
a **doc-section** chunk, named by its own outer capture where the author gave
one. Patterns with no outer label are anonymous sections whose nested captures
stay full-text-searchable.

## Chunks produced

```scm
; doc_section "function"
(function_definition name: (identifier) @_fn_name) @function

; doc_section "keyword"
["if" "else"] @keyword
```

## Embedded / injected chunks

None. Query files do not embed other languages.

## Grammar & dependencies

Uses the `tree-sitter-query` grammar (`.scm`). No dependency on other language
plugins.
