[TxMt] Re: regexp problem - eternal loop - how to cancel?

Allan Odgaard mailinglist at textmate.org
Sun Sep 7 13:06:45 UTC 2008


On 4 Sep 2008, at 10:44, Hans-Jörg Bibiko wrote:

> [...]
> [ATTENTION TextMate will freeze!!!!]
>>
> [...]
> Of course, this is a problem of the regexp but if one wants to develop
> such a regexp such errors could appear. The question now is how to
> interrupt such an eternal regexp loop??
> To be honest I have no idea but maybe one could listen to the keyboard
> event (APPLE+.) inside of the regexp function.

It’s easier said than done (allowing graceful aborting of exponential  
time regexps) but it is something which is on the radar.




More information about the textmate mailing list