Manuel Ortega wrote:

> On Sun, Apr 24, 2016 at 2:37 AM, Manuel Ortega <[email protected]>
> wrote:
> 
> > Well this is fairly recent, but I don't know which patch did it.  The old
> > regex engine's behavior broke.
> >
> > To reproduce:
> >
> > vim -u NONE -N -c "set re=1"
> >
> > Put this text in a buffer: Motörhead
> >
> > (That second "o", with the umlaut, is "<ö> 246, Hex 00f6,  Octal 366"
> > according to 'ga'.)
> >
> > :syn match foo '[[:print:]]\+'
> > :hi foo guifg=green
> >
> > Now notice that all the letters in "Motörhead" except the fancy one are
> > green.  This seems like a bug; they should all be green.  Surely "ö" is
> > "printable".  Also notice that if you replace [[:print:]] with [[:alnum:]]
> > it's the same problem.
> >
> > I could swear up and down that Vim did not formerly do this with &re=1;
> > Vim doesn't do it *now* if &re=0.  I'm on OS X 10.11.4, with Vim from HEAD.
> 
> Bisection reveals that the problem was introduced by 7.4.704, from a year
> ago.

I can reproduce the problem.  Previously illegal single-byte characters
were used for these classes.  Patch 7.4.704 correctly reject the illegal
bytes, but does not fix the source.

I think we can change the regc() into regmbc() to make this work.

-- 
FATHER: We are here today to witness the union of two young people in the
        joyful bond of the holy wedlock.  Unfortunately, one of them, my son
        Herbert, has just fallen to his death.
   [Murmurs from CROWD;  the BRIDE smiles with relief, coughs.]
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// 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/d/optout.

Raspunde prin e-mail lui