From 5598051d92377dcfc776620aad10eec854a40663 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 30 Aug 2022 17:13:23 +0200 Subject: extend grammar --- code/src/syntax_highlight/theme.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'code/src/syntax_highlight/theme.rs') diff --git a/code/src/syntax_highlight/theme.rs b/code/src/syntax_highlight/theme.rs index 40434ad..77018db 100644 --- a/code/src/syntax_highlight/theme.rs +++ b/code/src/syntax_highlight/theme.rs @@ -1,6 +1,13 @@ pub fn theme(kind: &str) -> &'static str { match kind { "keyword" => "#9999ff", + "macro" => "#ff2863", + "literal" => "#26a6ff", + "functions" => "#26ffbc", + "types" => "#26ff34", + "identifier" => "#ccff26", + "" => "#ff7c26", + "comment" => "#6e6e6e", _ => "#ff00ff", } } -- cgit v1.2.3-70-g09d2