Cesar Romani wrote:
> On 21/05/2013 05:04 a.m., Bram Moolenaar wrote:
> >
> > Cesar Romani wrote:
> >
> >> By updating from 7.3.969 to 7.3.981 the following command doesn't work
> >> anymore:
> >> %s/""/\='"'.matchstr(getline("."), '\d\+\ze<').'"'
> >>
> >> Let's say I use this command on the following text:
> >> <Title Action="GoTo" Page="">Table of Contents 5</Title>
> >> <Title Action="GoTo" Page="">Acknowledgements 7</Title>
> >> <Title Action="GoTo" Page="">Preface 9</Title>
> >> <Title Action="GoTo" Page="">Introduction to the Second, Revised Edition
> >> 11</Title>
> >> <Title Action="GoTo" Page="">Introduction 13</Title>
> >>
> >> It works with 7.3.969 but not with 7.3.981.
> >>
> >> Many thanks in advance,
> >
> > I can reproduce it. Looks like it has to do with the nested RE. But
> > only in the second line, hmm.
> >
> > You can work around it with:
> > :set re=1
> >
> > I did a bit of debugging, seems the problem is using the same compiled
> > regexp twice. Not sure yet what the proper solution is. I keep seeing
> > more and more bad stuff now that I look at the details of the NFA...
> >
>
> By using vim 7.3.1020, it isn't working yet with
> %s/""/\='"'.matchstr(getline("."), '\d\+\ze<').'"'
>
> The first '>' gets removed from the second line on.
I see the problem.
--
Article in the first Free Software Magazine: "Bram Moolenaar studied electrical
engineering at the Technical University of Delft and graduated in 1985 on a
multi-processor Unix architecture."
Response by "dimator": Could the school not afford a proper stage for the
ceremony?
/// 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_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.