Skip to main content

Crate editor_core_treesitter

Crate editor_core_treesitter 

Source
Expand description

editor-core-treesitter - Tree-sitter integration for editor-core.

This crate provides an offline incremental parsing pipeline that can produce:

  • highlight intervals (a style layer)
  • fold regions (derived folding)

Output is expressed as editor_core::ProcessingEdit values, so it composes with other derived state producers like LSP or .sublime-syntax.

Structs§

TreeSitterProcessor
An incremental Tree-sitter based document processor.
TreeSitterProcessorConfig
Configuration for TreeSitterProcessor.

Enums§

TreeSitterUpdateMode
How the processor updated its parse tree for the last process() call.