null
|
|
||
|---|---|---|
| .github/workflows | ||
| bindings | ||
| src | ||
| test/corpus | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .npmignore | ||
| binding.gyp | ||
| biome.json | ||
| Cargo.toml | ||
| example.zit | ||
| grammar.js | ||
| LICENSE.md | ||
| package.json | ||
| README.md | ||
| tree-sitter-zit.wasm | ||
| tree-sitter.json | ||
tree-sitter-zit
zit grammar for tree-sitter - an enhanced task tracking format based on [x]it!
This grammar supports both the original xit format and zit (enhanced xit) with additional features like task IDs, time tracking, dependencies, assignees, recurring tasks, Linear/Jira/GitHub issue linking, and more. See SPEC.md for the complete zit specification.
Installation
You need to have a proper tree-sitter setup first.
Development
Running Tests
The grammar includes comprehensive tests in the test/corpus/ directory covering all xit and zit features:
# Run all tests
npm test
# Or using tree-sitter CLI directly
tree-sitter test
# Run a specific test file
tree-sitter test -f checkboxes
tree-sitter test -f task_ids
Building the Grammar
# Generate parser from grammar.js
tree-sitter generate
# Build WASM for web usage
tree-sitter build --wasm
# Test the parser interactively
tree-sitter parse example.zit