I'd like to add custom ligature support for my language plugin I'm developing.
My issue is that the '<=' sign can either mean "smaller than or equal to" __or__ a type of assignment depending on context.
I've just realized the PHPStorm has the same issue and SOMEHOW solves it so that it renders "correctly".
I can't find any documentation for how to add this to a custom language.
In my BNF file there is enough rule knowledge to know when each glyph should be rendered.