[TxMt] Re: String of text causes CPU to 100%
Jacob Carlborg
doob at me.com
Fri Jan 3 10:39:28 UTC 2020
> On 3 Jan 2020, at 05:07, Quinn Comendant <quinn at strangecode.com> wrote:
>
> Thanks. By process of elimination, I was able to narrow the problem down to a language grammar I had modified: `Mail.tmbundle/Syntaxes/Email Address.tmLanguage`.
>
> I changed this:
>
> (?i)\b([A-Z][A-Z0-9._%+-]+)@([A-Z0-9.\-]+)\.([A-Z]{2,4})\b
>
> To this:
>
> (?i)\b([A-Z0-9][A-Z0-9._%+-]+)+@([A-Z0-9.\-]+)\.([A-Z]{2,4})\b
>
> Which apparently causes infinite parsing, although I can't see why.
I don’t think you should have `+` before `@`.
--
/Jacob Carlborg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macromates.com/textmate/attachments/20200103/a7627c24/attachment.html>
More information about the TextMate
mailing list