Crate highlighter_core

Source
Expand description

The core of the Highlighter crate.

Modules§

language

Structs§

LexerContext
A context used by the lexer to match tokens.
Token
A token in a token context.
TokenContext
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§

TokenHandler
A function which handles a match, and then outputs the corresponding tokens.