#include <syntax_highlighter.hpp>
|
| std::array< Opt, num_token_kinds > | token_opts {} |
| | Each index is representative of the highlighting option for the token kind enumerator with a value == index. e.g., token_opts[0] is the option for StringLiteral.
|
| |
|
| static constexpr auto | num_token_kinds = static_cast<std::size_t>(EndDelimiter) |
| |
◆ basic_binary_op_spacing()
| std::string asmgrader::highlight::Options::basic_binary_op_spacing |
( |
std::string_view | op | ) |
|
|
static |
Add spacing for binary ops.
◆ basic_op_spacing()
| std::string asmgrader::highlight::Options::basic_op_spacing |
( |
std::string_view | op | ) |
|
|
static |
◆ get_default_options()
| Options asmgrader::highlight::Options::get_default_options |
( |
| ) |
|
|
static |
◆ operator[]() [1/4]
◆ operator[]() [2/4]
◆ operator[]() [3/4]
| Opt & asmgrader::highlight::Options::operator[] |
( |
std::size_t | idx | ) |
|
|
inlineconstexpr |
◆ operator[]() [4/4]
| const Opt & asmgrader::highlight::Options::operator[] |
( |
std::size_t | idx | ) |
const |
|
inlineconstexpr |
◆ style_basic_ident_types()
| fmt::text_style asmgrader::highlight::Options::style_basic_ident_types |
( |
fmt::text_style | type_style, |
|
|
fmt::text_style | default_style, |
|
|
std::string_view | ident ) |
|
static |
Custom styling functions for identifiers that are types (e.g., void, int, etc.)
◆ style_op_keywords()
| fmt::text_style asmgrader::highlight::Options::style_op_keywords |
( |
fmt::text_style | keyword_style, |
|
|
fmt::text_style | default_style, |
|
|
std::string_view | op ) |
|
static |
◆ num_token_kinds
| auto asmgrader::highlight::Options::num_token_kinds = static_cast<std::size_t>(EndDelimiter) |
|
staticconstexpr |
◆ token_opts
Each index is representative of the highlighting option for the token kind enumerator with a value == index. e.g., token_opts[0] is the option for StringLiteral.
The documentation for this struct was generated from the following files: