I want to make a plugin that parses a custom file format and performs some transformations on it. Since I’ve already done a sublime syntax for this file format, it’d be pretty straightforwards to create python functions that fullfill the role of sublime syntax contexts.
The problem is that the engine python uses is backtracking and on top of that doesn’t offer possessive quantifiers, atomic groups and some other useful tools to simplify expressions in backtracking engines.
So I was wondering, as the title says, if the sregex engine can be accessed and used somehow from a plugin, or if there are sublime plugins that somehow mitigate the shortcommings of python’s engine.