https://github.com/agentcooper/tree-sitter-query-formatter
Format Tree-sitter queries
https://github.com/agentcooper/tree-sitter-query-formatter
formatter pretty-printer tree-sitter tree-sitter-query tree-sitter-query-language
Last synced: 10 days ago
JSON representation
Format Tree-sitter queries
- Host: GitHub
- URL: https://github.com/agentcooper/tree-sitter-query-formatter
- Owner: agentcooper
- Created: 2025-09-30T16:30:41.000Z (15 days ago)
- Default Branch: main
- Last Pushed: 2025-09-30T17:01:55.000Z (15 days ago)
- Last Synced: 2025-09-30T19:05:30.037Z (15 days ago)
- Topics: formatter, pretty-printer, tree-sitter, tree-sitter-query, tree-sitter-query-language
- Language: Rust
- Homepage: https://agentcooper.github.io/tree-sitter-query-formatter/
- Size: 41 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Formatter for [Tree-sitter queries](https://tree-sitter.github.io/tree-sitter/using-parsers/queries/1-syntax.html).
Available [on the web](https://agentcooper.github.io/tree-sitter-query-formatter/) and as a [Rust crate](https://crates.io/crates/tree-sitter-query-formatter).
## Development
Use `cargo test --test integration_tests` to run tests.
Use `cargo run ` to print output for a file or `echo '...' | cargo run` for a short snippet. Use `cargo run --tree` to also print a parse tree.
Use `make dev` to run the browser playground locally.
## Useful links
- [Tree-sitter query grammar](https://raw.githubusercontent.com/tree-sitter-grammars/tree-sitter-query/refs/heads/master/grammar.js)