Apparently the order of the patterns array matters a lot to textmate. GitHub seems to closely match the original textmate highlighting engine compared to any other implementation (which were highlighting correctly without this)
@lifeart don't merge this until I've tested shikijs, I want to ensure this fix isn't breaking everywhere else this is used.
I'll post a reply once I'm happy everywhere is working as intended.
Apparently the order of the patterns array matters a lot to textmate. GitHub seems to closely match the original textmate highlighting engine compared to any other implementation (which were highlighting correctly without this)
@lifeart don't merge this until I've tested shikijs, I want to ensure this fix isn't breaking everywhere else this is used.
I'll post a reply once I'm happy everywhere is working as intended.