Skip to main content

SyntaxContextProvider

Trait SyntaxContextProvider 

Source
pub trait SyntaxContextProvider {
    // Required method
    fn context_at(&self, text: &Rope, offset: usize) -> SyntaxContext;
}
Expand description

Answers syntax context for editing decisions (pairing, skip, indent).

Created per editor by the application’s super::LanguageProvider. Base never imports a parser; implementations live in UI crates or apps.

Required Methods§

Source

fn context_at(&self, text: &Rope, offset: usize) -> SyntaxContext

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§