Introducing Microlighter
33 points by carlana
33 points by carlana
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
Looks like not, from looking at the code it seems to be using the js/regexp grammars directly.