logoalt Hacker News

thangalintoday at 7:22 AM0 repliesview on HN

Syntax highlighting rules, initially vibe-coded 40 languages and formats in about 10 minutes. What surprised me is when it switched the design from a class to the far more elegant single line of code:

    return \file_exists( $file ) ? require $file : [];
* https://repo.autonoma.ca/repo/treetrek/blob/HEAD/render/High...

The rules files:

* https://repo.autonoma.ca/repo/treetrek/tree/HEAD/render/rule...