mod example;
mod simple_match;
use crate::StyledText;
pub use example::ExampleHighlighter;
pub use simple_match::SimpleMatchHighlighter;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum AbbrExpandContext {
WordAbbreviation,
#[cfg(feature = "bashisms")]
BangExpansion,
}
pub trait Highlighter: Send {
fn highlight(&self, line: &str, cursor: usize) -> StyledText;
fn should_expand_abbr(&self, line: &str, cursor: usize, context: AbbrExpandContext) -> bool {
let _ = (line, cursor, context);
true
}
}