Hacker News new | past | comments | ask | show | jobs | submit login

I wrote https://github.com/Mozilla-Ocho/llamafile/blob/main/llamafil... and it does a reasonable job highlighting without breaking for all the .tex files I could find on my hard drive. My goal is to hopefully cover 99.9% of real world usage, since that'll likely cover everything an LLM might output. Esoteric syntax also usually isn't a problem, so long as it doesn't cause strings and comments to extend forever, eclipsing the rest of the source code in a file.



Yes, when goal isn’t to support 100% of all the weird stuff, then it’s orders of magnitude easier!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: