pub(crate) const RUST_KEYWORDS: &[&str] = &[
"as", "async", "await", "break", "const", "continue", "crate", "dyn", "else", "enum", "extern",
"false", "fn", "for", "if", "impl", "in", "let", "loop", "match", "mod", "move", "mut", "pub",
"ref", "return", "self", "Self", "static", "struct", "super", "trait", "true", "type",
"unsafe", "use", "where", "while",
];
pub(crate) const RUST_TYPE_KEYWORDS: &[&str] = &["enum", "struct", "trait", "type", "union"];
pub(crate) const RUST_FUNCTION_KEYWORD: &str = "fn";
pub(crate) const BASH_KEYWORDS: &[&str] = &[
"alias", "break", "case", "continue", "declare", "do", "done", "elif", "else", "esac", "eval",
"exec", "exit", "export", "fi", "for", "function", "if", "in", "local", "readonly", "return",
"set", "shift", "source", "then", "trap", "unset", "until", "while",
];
pub(crate) const TS_KEYWORDS: &[&str] = &[
"abstract",
"any",
"as",
"async",
"await",
"boolean",
"break",
"case",
"catch",
"class",
"const",
"continue",
"declare",
"default",
"delete",
"do",
"else",
"enum",
"export",
"extends",
"false",
"finally",
"for",
"from",
"function",
"get",
"if",
"implements",
"import",
"in",
"instanceof",
"interface",
"keyof",
"let",
"new",
"null",
"number",
"of",
"package",
"private",
"protected",
"public",
"readonly",
"return",
"satisfies",
"set",
"static",
"string",
"super",
"switch",
"symbol",
"this",
"throw",
"true",
"try",
"type",
"typeof",
"undefined",
"unknown",
"var",
"void",
"while",
"yield",
];
pub(crate) const JSON_KEYWORDS: &[&str] = &["false", "null", "true"];
pub(crate) const CLASS_TOKEN_KEYWORD: &str = "c_docs_code_kw";
pub(crate) const CLASS_TOKEN_STRING: &str = "c_docs_code_str";
pub(crate) const CLASS_TOKEN_NUMBER: &str = "c_docs_code_num";
pub(crate) const CLASS_TOKEN_COMMENT: &str = "c_docs_code_com";
pub(crate) const CLASS_TOKEN_FUNCTION: &str = "c_docs_code_fn";
pub(crate) const CLASS_TOKEN_TYPE: &str = "c_docs_code_ty";
pub(crate) const CLASS_TOKEN_ATTRIBUTE: &str = "c_docs_code_attr";
pub(crate) const CLASS_TOKEN_TAG: &str = "c_docs_code_tag";
pub(crate) const CLASS_TOKEN_VARIABLE: &str = "c_docs_code_var";
pub(crate) const CODE_CSS: &str = ":root { \
--docs-code-keyword: #d73a49; \
--docs-code-string: #032f62; \
--docs-code-number: #005cc5; \
--docs-code-comment: #6a737d; \
--docs-code-function: #6f42c1; \
--docs-code-type: #22863a; \
--docs-code-attribute: #6f42c1; \
--docs-code-tag: #22863a; \
--docs-code-variable: #e36209; \
} \
.c_theme_dark { \
--docs-code-keyword: #f97583; \
--docs-code-string: #9ecbff; \
--docs-code-number: #79c0ff; \
--docs-code-comment: #8b949e; \
--docs-code-function: #b392f0; \
--docs-code-type: #7ee787; \
--docs-code-attribute: #b392f0; \
--docs-code-tag: #7ee787; \
--docs-code-variable: #ffa657; \
} \
.c_docs_code_kw { color: var(--docs-code-keyword); } \
.c_docs_code_str { color: var(--docs-code-string); } \
.c_docs_code_num { color: var(--docs-code-number); } \
.c_docs_code_com { color: var(--docs-code-comment); font-style: italic; } \
.c_docs_code_fn { color: var(--docs-code-function); } \
.c_docs_code_ty { color: var(--docs-code-type); } \
.c_docs_code_attr { color: var(--docs-code-attribute); } \
.c_docs_code_tag { color: var(--docs-code-tag); } \
.c_docs_code_var { color: var(--docs-code-variable); }";