On Thu, Mar 27, 2008 at 5:54 PM, Antony Scriven <[EMAIL PROTECTED]> wrote:
>
>  On 26/03/2008, Xiaozhou Liu <[EMAIL PROTECTED]> wrote:
>
>   >  Hi Vimmers,
>   >
>   >  During the development of the new regexp, one thing
>   >  confuses me a lot: ordered alternation. (e.g. given r.e.
>   >  'ab\|abc' and text 'abc', 'ab' matched, not 'abc')
>   >
>   >  I know that 100% compatibility is one of the project
>   >  goals. So I try to keep this feature in the new regexp.
>   >  But the problem is, ordered alternation is kind of 'side
>   >  effect' of the original back track regexp matcher.
>   >  AFAIK, It is very hard to implement this feature in the
>   >  new, truly NFA matcher, if it is not impossible. We can
>   >  resort to the original regexp when we see '\|',  but we
>   >  don't solve the problem perfectly.
>
>  I thought Russ Cox had solved this in the code on his
>  website, or am I mistaken?

Yes, Russ had solved this :-)

Xiaozhou

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui