diff options
author | metamuffin <metamuffin@disroot.org> | 2022-09-26 14:14:58 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-09-26 14:14:58 +0200 |
commit | 15d78464ba9a717a71e1dc47a4101c8b13ec6581 (patch) | |
tree | 43def89ffd6e9c2ff80e7f7eeecec6fcf18c4e92 /code/src/syntax_highlight/theme.rs | |
parent | 0a18eae178a23e7f7bfd88c37502e5e8c1fdf64a (diff) | |
download | metamuffin-blog-15d78464ba9a717a71e1dc47a4101c8b13ec6581.tar metamuffin-blog-15d78464ba9a717a71e1dc47a4101c8b13ec6581.tar.bz2 metamuffin-blog-15d78464ba9a717a71e1dc47a4101c8b13ec6581.tar.zst |
syntax highlighting with syntect
Diffstat (limited to 'code/src/syntax_highlight/theme.rs')
-rw-r--r-- | code/src/syntax_highlight/theme.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/code/src/syntax_highlight/theme.rs b/code/src/syntax_highlight/theme.rs deleted file mode 100644 index 2dfd10d..0000000 --- a/code/src/syntax_highlight/theme.rs +++ /dev/null @@ -1,13 +0,0 @@ -pub fn theme(kind: &str) -> &'static str { - match kind { - "keyword" => "#9999ff", - "macro" => "#ff2863", - "literal" => "#26a6ff", - "function" => "#26ffbc", - "types" => "#26ff34", - "identifier" => "#ccff26", - "constant" => "#ff7c26", - "comment" => "#6e6e6e", - _ => "#ff00ff", - } -} |