Open zoli opened 8 years ago
Depends on exactly how the parser works, but it seems to me that replacing the backreferences by an escaped version of the match in the beginning might be the best way to do it. Compiling different regexes for each match is kinda annoying though.
Some tmLanguage files have patterns with begin and end, If the end regex has backrefer number like this It raises
invalid backref number
error because we aren't relating begin and end regex on compiling.