Struct hime_redist::lexers::DefaultContextProvider
source · pub struct DefaultContextProvider {}
Expand description
Implementation of the default context provider
Trait Implementations§
source§impl ContextProvider for DefaultContextProvider
impl ContextProvider for DefaultContextProvider
source§fn get_context_priority(
&self,
_token_count: usize,
context: u16,
_terminal_id: u32
) -> Option<usize>
fn get_context_priority(
&self,
_token_count: usize,
context: u16,
_terminal_id: u32
) -> Option<usize>
Gets the priority of the specified context required by the specified terminal
The priority is an unsigned integer. The lesser the value the higher the priority.
The absence of value represents the unavailability of the required context. Read more