diff options
author | metamuffin <metamuffin@disroot.org> | 2022-08-30 17:13:23 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-08-30 17:13:23 +0200 |
commit | 5598051d92377dcfc776620aad10eec854a40663 (patch) | |
tree | 089aad643f2ed86e75b55d02306bc5322a4559df /code/src/syntax_highlight/mod.rs | |
parent | 802efbca25cb92d8567761361b6513fd57e05578 (diff) | |
download | metamuffin-blog-5598051d92377dcfc776620aad10eec854a40663.tar metamuffin-blog-5598051d92377dcfc776620aad10eec854a40663.tar.bz2 metamuffin-blog-5598051d92377dcfc776620aad10eec854a40663.tar.zst |
extend grammar
Diffstat (limited to 'code/src/syntax_highlight/mod.rs')
-rw-r--r-- | code/src/syntax_highlight/mod.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/code/src/syntax_highlight/mod.rs b/code/src/syntax_highlight/mod.rs index 688b010..515de28 100644 --- a/code/src/syntax_highlight/mod.rs +++ b/code/src/syntax_highlight/mod.rs @@ -14,7 +14,6 @@ pub fn syntax_highlight(lang: &str, source: &str) -> String { let mut out = String::new(); for (_c, row) in highlighting.iter().enumerate() { - eprintln!("{row:?}"); for tok in row { match tok { Token::Start(kind) => out += &format!("<span style=\"color:{}\">", theme(kind)), @@ -24,6 +23,5 @@ pub fn syntax_highlight(lang: &str, source: &str) -> String { } out += "\n" } - eprintln!("{out:?}"); out } |