Closed pchaigno closed 6 years ago
I suspect you broke the regex at the last position possible to still remain within the 64kb size per expression? I would rather split the expression in the middle to avoid encountering this again in the future when something is added to the regex.
A comment mentioning the reason for a split should also be added.
I suspect you broke the regex at the last position possible to still remain within the 64kb size per expression?
Yes
I would rather split the expression in the middle to avoid encountering this again in the future when something is added to the regex. A comment mentioning the reason for a split should also be added.
Yep, that makes sense. I updated the branch.
This grammar is used on GitHub.com to highlight AutoIt. Whereas Sublime Text uses the Oniguruma regular expression library, GitHub relies on PCRE. PCRE imposes a maximum size of 64kb per regular expression. The
support.function.other.autoit
is 75kb.