orgnizedmess


December Adventure 2026

From December Adventure:

Pick a project, or projects and work on them a little bit every day in December.

My primary project will be working on this website and the code that builds it, sprinkled with smaller projects that I’ve been putting off for a while. I’ve also been intimidated to post more on my website, so I hope updating this log daily helps me form a better habit.

2026-12-01

Updated the syntax highlighter to highlight the log snippets in this post. My current syntax of choice is arborium, a tree-sitter based highlighter with the grammars provided. It also has customization options to add new grammars, so I added tree-sitter-log which is part of the Helix editor.

The code for syntax highlighting feels all over the place though. My site generator is in Python, but the highlighting code is in Rust. So I wrote Python bindings for the highlighter with the custom grammars and import it as a local package in my site generator.

tree-sitter-log has Rust bindings, but they aren’t published, so I built the crate locally (code also needed updating as it uses an older version of tree-sitter) and imported the local crate to the highlighter.

That’s two separate packages apart from the main site code to maintain, so I’d like to figure out how to consolidate the code better. I may have to make a choice to choose one language eventually.