Technomancy's place

every time I work it #tic80 it's a lot of fun, but it's easy to make syntax errors because I'm used to having a lot more help getting my delimiters matched up.

yesterday I implemented a patch which highlights the match for the delimiter your cursor is currently on:

I had some trouble because I needed to skip over delimiters that were inside strings or comments, and I couldn't find out how to do this, so I asked the author, and he added a special syntax type buffer that gave me exactly what I needed. it's always a pleasure to work with maintainers who are so helpful and responsive.
code in the TIC editor with the cursor moving around and highlighting different matched delimiters

unfortunately this particular code had to be done in C. it was a small enough change that using C felt more like a tricky zachtronics puzzle than an unbearable tedium, but I can't shake the feeling that there's a mistake in there somewhere that will at some point crash the whole program.

if it were just for me, that'd be one thing, but in this case crashing the whole program could mean a middle schooler just lost half an hour of work and decides to give up.

anyway if someone who Actually Knows C wants to put some extra eyes on the patch, that'd be great too.