Friday, April 15, 2016

Re: RFE: support POSIX standard and developing RE's


On Apr 15, 2016 4:03 PM, "Eric Christopherson" <echristopherson@gmail.com> wrote:
>
> On Tue, Apr 12, 2016 at 12:45 PM, L. A. Walsh <vim@tlinx.org> wrote:
>>
>> Christian Brabandt wrote:
>>>
>>> There is https://github.com/vim/vim/issues/99
>>> You might want to check, if this works for you.
>>>  
>>
>> ----
>>     If vim supported posix extended RE's, then, like, say grep,
>> it could also support Perl RE's, from the PCRE library.  Perl supports
>> the "/x" to ignore whitespace for readability.  I.e. the author was saying
>> they wanted to implement some flavor of PCRE's, but really wanted the "/x"
>> feature, which would have been alot easier to do from Vim's current
>> feature set.
>>
>>     If Vim could _at least_ support extended 'RE's, and if it was done
>> in a modular fashion, then it seems adding other 'RE' engines would be
>> easier.  Note, I don't know about current benchmarks, but PCRE was the
>> fastest 'RE' engine out of any of the standard 'RE' engines as well, by
>> far, the most expressive.  Perl even bent over backwards to implement
>> Python-RE specific features to make it easy to port Python-RE's along
>> with all the POSIX RE's.
>>
>> -----------------------------------------------------------------
>> BPJ wrote:
>>>>
>>>> There is https://github.com/vim/vim/issues/99
>>>> You might want to check, if this works for you.
>>>
>>>
>>> If I'm not mistaken that's "extended" as in /x,  a different sense from "extended" as in ERE.
>>>
>>> i would like to have "extended as in /x" FWIW.
>>
>> If vim could include the PCRE engine (then you'd have this automatically).
>> And you are right "/x" is not the same as POSIX extended RE's, but is the
>> same as PCRE's "/x" switch.
>
>
> Just FYI:
>
> The name Perl-Compatible Regular Expressions is a misnomer. PCRE is not strictly Perl-compatible (and I'm guessing Perl doesn't deal 100% appropriately when fed PCRE either, although it has picked up at least some of PCRE's extensions). It's not part of the Perl project.
>  

That's why I listed libperl *and* libpcre. I definitely find libpcre lacking (being a perl user).

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment