Re: [code] [textadept] Regexp searches don't work with longer patterns

From: Chris Emerson <c-ta.att.mail.nosreme.org>
Date: Tue, 11 Feb 2014 15:30:28 +0000

On Tue, Feb 11, 2014 at 01:26:07PM +0000, Chris Emerson wrote:
> I haven't worked out where the limitation is, but I find regular expression
> searches don't work (search_next returns -1) when the pattern is too long.
> Non-regexp searches (flags=0) seem to continue working.

I believe this is 2048 byte limit for the NFA inside the Scintilla regex
engine - and with a case-insensitive search, a single character match takes
something like 33 bytes (it has a bitmask of allowed characters). I can
work around my issue by making it a case sensitive search instead.

Chris

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Tue 11 Feb 2014 - 10:30:28 EST

This archive was generated by hypermail 2.2.0 : Wed 12 Feb 2014 - 06:40:04 EST