If I open a Plain Text window and paste in the following line of text, TextMate 2.0.3 CPU usage goes to 100% and never stops. Syntax highlighting ends at the line containing the text. Here's the string:
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;=
I cant reproduce this.
But what syntax highlighting are you referring to? There's no syntax highlighting for a Plain text file, unless I'm missing something?
On Thu, 26 Dec 2019 at 21:03, Quinn Comendant quinn@strangecode.com wrote:
If I open a Plain Text window and paste in the following line of text, TextMate 2.0.3 CPU usage goes to 100% and never stops. Syntax highlighting ends at the line containing the text. Here's the string:
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;=
TextMate mailing list TextMate@lists.macromates.com https://lists.macromates.com/listinfo/textmate
I first noticed this in a php file, but it also happens in a plain text file. This is something recent. I open the file with this string regularly, and I didn't notice the problem until yesterday.
Is there a way to disable bundle items to identify which might be causing the problem?
Quinn
Do you have any custom bundles? If not, Id suggest reinstalling to see if that helps.
If it doesn't, maybe you could try producing the smallest file which still exhibits the problem, and then we can confirm if it affects everyone or if it's just your setup.
On Thu, 26 Dec 2019 at 22:42, Quinn Comendant quinn@strangecode.com wrote:
I first noticed this in a php file, but it also happens in a plain text file. This is something recent. I open the file with this string regularly, and I didn't notice the problem until yesterday.
Is there a way to disable bundle items to identify which might be causing the problem?
Quinn
-- Sent from my mobile device; please excuse the terseness and typos.
On Dec 26, 2019, at 15:09, Carpii UK carpii.uk@gmail.com wrote:
I cant reproduce this.
But what syntax highlighting are you referring to? There's no syntax highlighting for a Plain text file, unless I'm missing something?
On Thu, 26 Dec 2019 at 21:03, Quinn Comendant quinn@strangecode.com wrote:
If I open a Plain Text window and paste in the following line of text, TextMate 2.0.3 CPU usage goes to 100% and never stops. Syntax highlighting ends at the line containing the text. Here's the string:
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~:/?#[]@!$&'()*+,;=
TextMate mailing list TextMate@lists.macromates.com https://lists.macromates.com/listinfo/textmate
TextMate mailing list TextMate@lists.macromates.com https://lists.macromates.com/listinfo/textmate
TextMate mailing list TextMate@lists.macromates.com https://lists.macromates.com/listinfo/textmate
On 26 Dec 2019, at 23:42, Quinn Comendant quinn@strangecode.com wrote:
Is there a way to disable bundle items to identify which might be causing the problem?
If you open the bundle editor and select a bundle item, then there’s a checkbox in the drawer to enable/disable the item. It works both for whole bundles and individual bundle items.
-- /Jacob Carlborg
On 27 Dec 2019 10:03:52, Jacob Carlborg wrote:
If you open the bundle editor and select a bundle item, then there’s a checkbox in the drawer to enable/disable the item.
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 was trying to fix the regex so that it will match email addresses containing dots or beginning with a number, e.g.:
This is correctly identified as markup.underline.link.email.hyperlink:
testuser@example.com
But these are not:
1testuser@example.com test.user@example.com
Any help would be appreciated how to get those email addresses to parse too.
Regards, Quinn
On 3 Jan 2020, at 05:07, Quinn Comendant quinn@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 `@`.