#![warn(missing_docs)]
//! `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`.

mod indenter;
mod loader;
mod processor;
mod registry;

pub use indenter::{TreeSitterIndenter, TreeSitterIndenterConfig};
pub use loader::{
    TreeSitterLoadError, load_indenter_config_from_config, load_processor_config_from_config,
};
pub use processor::{
    TreeSitterError, TreeSitterLanguage, TreeSitterProcessor, TreeSitterProcessorConfig,
    TreeSitterUpdateMode,
};
pub use registry::{
    TreeSitterConfig, TreeSitterConfigMap, TreeSitterExtensionMap, TreeSitterRegistry,
    TreeSitterRegistryError,
};
