Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
vindarel
vindarel
@vindarel@framapiaf.org  ·  activity timestamp yesterday

Lem news: #treesitter support for JSON, YAML, Markdown, Nix, WAT.

https://lem-project.github.io/development/tree-sitter/

with AI in the loop.

#lisp #commonlisp

Lem

Tree-sitter Integration

Lem integrates tree-sitter for advanced syntax highlighting and indentation. Tree-sitter provides incremental parsing that can efficiently update syntax trees as you edit, enabling features that understand code structure rather than just patterns. Overview The tree-sitter integration in Lem provides: Syntax Highlighting: Accurate, language-aware highlighting based on AST nodes Indentation: Structure-based indentation using tree-sitter queries Incremental Parsing: Efficient updates without re-parsing entire files Graceful Fallback: Falls back to regex-based highlighting when tree-sitter is unavailable Architecture ┌─────────────────┐ │ tree-sitter-cl │ │ (FFI bindings) │ └────────┬────────┘ │ ┌─────────────────┐ ┌────────▼────────┐ │ Language Mode │──────────▶│ lem-tree-sitter │ │ (json, nix.
  • Copy link
  • Flag this post
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.41 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct