pub struct TreeSitterPlugin { /* private fields */ }Expand description
A hikari LanguagePlugin backed by a tree-sitter grammar.
Trait Implementations§
Source§impl LanguagePlugin for TreeSitterPlugin
impl LanguagePlugin for TreeSitterPlugin
fn language(&self) -> Language
fn selectors(&self) -> &'static [Selector]
fn make_highlighter(&self) -> Box<dyn Highlighter>
Source§fn make_incremental(&self) -> Box<dyn IncrementalHighlighter>
fn make_incremental(&self) -> Box<dyn IncrementalHighlighter>
The incremental (line-cached) highlighter for this language. The default
wraps
make_highlighter in a
WholeReHighlighter (correct, re-lexes the whole document); a
LineState-carrying backend overrides this to return a real
LineCache and gains the fixpoint re-lex for free.Auto Trait Implementations§
impl Freeze for TreeSitterPlugin
impl RefUnwindSafe for TreeSitterPlugin
impl Send for TreeSitterPlugin
impl Sync for TreeSitterPlugin
impl Unpin for TreeSitterPlugin
impl UnsafeUnpin for TreeSitterPlugin
impl UnwindSafe for TreeSitterPlugin
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more