Skip to main content

editor_core_treesitter/
lib.rs

1#![warn(missing_docs)]
2//! `editor-core-treesitter` - Tree-sitter integration for `editor-core`.
3//!
4//! This crate provides an offline incremental parsing pipeline that can produce:
5//!
6//! - highlight intervals (a style layer)
7//! - fold regions (derived folding)
8//!
9//! Output is expressed as `editor_core::ProcessingEdit` values, so it composes with other derived
10//! state producers like LSP or `.sublime-syntax`.
11
12mod indenter;
13mod loader;
14mod processor;
15mod registry;
16
17pub use indenter::{TreeSitterIndenter, TreeSitterIndenterConfig};
18pub use loader::{
19    TreeSitterLoadError, load_indenter_config_from_config, load_processor_config_from_config,
20};
21pub use processor::{
22    TreeSitterError, TreeSitterLanguage, TreeSitterProcessor, TreeSitterProcessorConfig,
23    TreeSitterUpdateMode,
24};
25pub use registry::{
26    TreeSitterConfig, TreeSitterConfigMap, TreeSitterExtensionMap, TreeSitterRegistry,
27    TreeSitterRegistryError,
28};