all repos — h3rald @ 784f36629fcf5b6335890e1b5cb481c56d7a9a53

The sources of https://h3rald.com

#DecemberAdventure
h3rald h3rald@h3rald.com
Tue, 10 Dec 2024 15:16:55 +0100
commit

784f36629fcf5b6335890e1b5cb481c56d7a9a53

parent

a280d4b5900aa4b48e2eb7d56a835c68b94f05e4

M contents/articles/december-adventure-2024.mdcontents/articles/december-adventure-2024.md

@@ -256,3 +256,20 @@

I am now just returning `0x0` (false) and be done with it. The other thing I did was updating the `web.hex` script to... generate the changelog based on files stored in a release folder. I am also generating a [CHAGELOG.md](https://github.com/h3rald/hex/blob/master/CHANGELOG.md) file so that GitHub is happy and can preview it, even though it is, in fact, an HTML file... + +### Day #10 + +And so... Colors! Time for some proper syntax highlighting for hex! I feel like I am kinda cheating a little bit, because having already implemented Vim and VSCode syntax highlighting for [min](https://min-lang.org), doing the same for hex was a piece of cake. + +Here's how hex syntax highlighting looks in Vim: + +![Vim hex highlighting](/images/dec-adv-2024/hex-vim.png) + +...and that's how it looks in Visual Studio Code: + +![VSCode hex highlighting](/images/dec-adv-2024/hex-vscode.png) + +Beyond that, I also quickly added support for: + +* Scheme-style block comments delimited by `#|` and `#|` (like in min) +* Support for handling hashbang if present on the first line