Introducing Microlighter

33 points by carlana


andyc

Leverages Textmate’s language grammars

I'm not sure if the author is here, but doesn't leveraging Textmate's grammars require embedding the Oniguruma regex engine (used in TextMate, Ruby, etc.)?

In the browser, that means WASM. That seems to conflict with "zero dependencies" and 2 KB minified


As far as I understand, Shiki has exactly this issue. It interpretes TextMate grammars in JS, and JS regexes are not enough for TextMate grammars. So it embeds Oniguruma

https://github.com/shikijs/shiki