This PR fixes parsing of some TextMate syntax files that use negative variable lookbehinds which is not supported by the joni regex library. See https://github.com/eclipse/tm4e/issues/677
Currently this is done in a rather naive but performant way by rewriting specific incompatible regex patterns to forms parseable by joni.
E.g. patterns starting with (?<!\.\s*) are rewritten to (?<!\.)\s* and patterns starting with (?<=^\s*) are rewritten to (?<=^)\s*
This PR fixes parsing of some TextMate syntax files that use negative variable lookbehinds which is not supported by the joni regex library. See https://github.com/eclipse/tm4e/issues/677
Currently this is done in a rather naive but performant way by rewriting specific incompatible regex patterns to forms parseable by joni. E.g. patterns starting with
(?<!\.\s*)
are rewritten to(?<!\.)\s*
and patterns starting with(?<=^\s*)
are rewritten to(?<=^)\s*