Expand description
The core of the Highlighter crate.
Modules§
Structs§
- Lexer
Context - A context used by the lexer to match tokens.
- Token
- A token in a token context.
- Token
Context - A context for processing tokens.
Enums§
- Error
- An error that occurred during parsing or compiling a regular expression.
Functions§
- highlight
- Highlights the provided code block.
Type Aliases§
- Token
Handler - A function which handles a match, and then outputs the corresponding tokens.