Trait rushell_deps_linefeed::syntaxer::Syntaxer[][src]

pub trait Syntaxer: Send + Sync {
    fn highlight(&self, buf: &str, pos: usize) -> Option<(String, usize)>;
}

A interface of syntax highlight This is called just before buffer is displayed.

Required methods

fn highlight(&self, buf: &str, pos: usize) -> Option<(String, usize)>[src]

syntax highlight buffer

Loading content...

Implementors

impl Syntaxer for DummySyntaxer[src]

fn highlight(&self, _buf: &str, _pos: usize) -> Option<(String, usize)>[src]

Loading content...