Skip to content

docs: add tree-sitter integration documentation#65

Merged
cxxxr merged 1 commit into
masterfrom
docs/tree-sitter
Dec 26, 2025
Merged

docs: add tree-sitter integration documentation#65
cxxxr merged 1 commit into
masterfrom
docs/tree-sitter

Conversation

@cxxxr
Copy link
Copy Markdown
Member

@cxxxr cxxxr commented Dec 26, 2025

Add comprehensive documentation for Lem's tree-sitter integration in English and Japanese.

Changes

Tree-sitter Documentation (content/*/development/tree-sitter.md)

  • Add documentation in English and Japanese

Contents Covered

  • Overview: Features provided by tree-sitter integration (syntax highlighting, indentation, incremental parsing, graceful fallback)
  • Architecture: Component diagram showing tree-sitter-cl, lem-tree-sitter, and language modes
  • Supported Languages: JSON, YAML, Nix, Markdown, WAT with feature matrix
  • Adding Tree-sitter Support: Step-by-step guide for mode developers
    • Creating query files
    • Writing highlight queries with examples
    • Enabling tree-sitter in mode definitions
    • Fallback handling
  • Capture Names Reference: Complete mapping of tree-sitter captures to Lem attributes
  • Indent Queries: Helix-style @indent/@outdent syntax documentation
  • API Reference: enable-tree-sitter-for-mode, tree-sitter-available-p, treesitter-parser class
  • Incremental Parsing: How edit tracking and AST reuse works
  • Installing Grammars: Instructions for tree-sitter CLI and package managers
  • Troubleshooting: Common issues and solutions

Related

Add comprehensive documentation for Lem's tree-sitter integration
in English and Japanese.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@cxxxr cxxxr merged commit d6970e3 into master Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant