Re: [code] [textadept] Textadept 9 poll: Lua patterns or Regex?

From: Richard Philips <richard.philips.att.gmail.com>
Date: Mon, 4 Jul 2016 18:23:25 +0200

Hi Mitchell,

does TRE support an equivalent for `%b()` ?

I read through the documentation but did not find anything.

I really would miss `%b()` ....

Richard

On Sunday, July 3, 2016, Mitchell <m.att.foicica.com> wrote:

> Hi,
>
> I've been experimenting with integrating the TRE regular expression
> library[1] into Textadept. An extra 40K in executable size yields a mostly
> complete POSIX-compatible set of regular expressions. (Not Perl Compatible
> Regular Expressions, or PCRE -- that is far too big and bloated.) I've been
> able to use TRE as a replacement for Textadept's existing "Lua pattern"
> search rather well. UTF-8 support is not as smooth as lua-utf8 though, but
> it appears to work.
>
> The question I have for you is would you prefer to have Regex searches
> instead of Lua pattern searches? I've been tinkering around with keeping
> them both as options, but I haven't found an elegant way to do it. I think
> I'd prefer keeping one over the other. If Lua patterns end up getting the
> boot, I'll post some code on the wiki to bring them back for those that
> prefer them.
>
> Also, if Regex wins, I'll likely be removing the Lua code execution in
> pattern replacements (e.g. `%(string.upper('%1')`). In the very few
> instances I've actually used it, it's not as reliable as I'd expect it to
> be.
>
> I'd appreciate your thoughts and comments on this very much.
>
> Cheers,
> Mitchell
>
> [1]: https://github.com/laurikari/tre/
> --
> 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.
>
>

-- 
Richard Philips
<http://anet.be>
Bibliotheek UAntwerpen
Stadscampus - S.A.085
Prinsstraat 9 - 2000 Antwerpen
richard.philips.att.uantwerpen.be
T +32 3 265 49 71
<http://anet.be>
-- 
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 Mon 04 Jul 2016 - 12:23:25 EDT

This archive was generated by hypermail 2.2.0 : Tue 05 Jul 2016 - 06:42:31 EDT