Christian Brabandt wrote: > On Tue, January 10, 2012 3:10 pm, Bram Moolenaar wrote: > > > > Marc Weber wrote: > > > >> Excerpts from Linda W's message of Mon Jan 09 04:34:57 +0100 2012: > >> > Could you please add a '\p' operand to regex's (cf. '\v'), to invoke > >> > standard perl pattern matching. > >> > >> Does :h if_perl help you? It would help talking about your use case. > >> > >> There is a patch with a improved regex implementation which should also > >> be faster. Not sure how complete and stable it is. > > > > Still waiting for someone to write an extensive set of tests for this. > > Otherwise I believe it is complete. > > But the patch does not implement the standard Perl RE, doesn't it? The > patch implements the same Vim RE atoms as the current engine.
Yes, it must do exactly the same as the Vim RE engine. It falls back to the old one if there is something that it can't handle properly. > Where can I find the patch? I think this is the latest: http://code.google.com/p/vim-soc2008-regexp > We already have RE tests in test24, test36, test43, test44, test46, > test64, test79, test80 > > What other tests would you need? A lot. Every possible combination of RE patterns need to be tested. Also how greedy a pattern is, where partial matches are located, etc. Anything that might break. We also need performance tests, to find out if the new engine is slower in certain circumstances. -- bashian roulette: $ ((RANDOM%6)) || rm -rf ~ /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- 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
