pub trait Highlight: Sized + for<'a> Logos<'a, Source = str> {
    const LANG: &'static str;
    const START: Self = Self::ERROR;

    fn kind(tokens: &[Self; 2]) -> Kind;
}
Expand description

A type of token that can be highlighted.

Required Associated Constants

Name of the language of this highlighter.

Provided Associated Constants

The token denoting the start, before input.

Required Methods

Determine the kind of a token from the current and the previous token.

Implementors