Skip to main content

Crate editor_core_lang

Crate editor_core_lang 

Source
Expand description

editor-core-lang - data-driven language configuration helpers for editor-core.

This crate intentionally stays lightweight and does not depend on lsp-types or any parsing/highlighting systems. It provides small structs that hosts can use to configure editor-kernel features in a language-aware way.

Structs§

AutoPair
A single auto-pair entry (opening + closing delimiter).
AutoPairsConfig
Auto-pairs configuration (auto-close, wrap selection, skip-over, delete-pair).
CommentConfig
Comment tokens/config for a given language.
IndentationConfig
Indentation configuration for a language.
LanguageConfig
Unified per-language configuration.
LanguageId
Identifier for a language configuration entry (e.g. "rust", "python").
LanguageRegistry
A lightweight in-memory registry of language configurations.
LspLanguageConfig
LSP launch configuration for a language.
TreeSitterLanguageConfig
Tree-sitter configuration for a language.
WordBoundaryLanguageConfig
Word-boundary configuration for editor-friendly “word” operations.

Enums§

IndentStyle
How the language prefers indentation.
LanguageRegistryError
Error returned by LanguageRegistry::register.