Yasuhiro Matsumoto wrote:

> On Tuesday, May 21, 2013 7:04:55 PM UTC+9, Bram Moolenaar wrote:
> 
> Some syntax hilighighting won't work even though re=1.
> For example:
> 
> 1. type "google"
> 2. :syn clear | syn match ErrorMsg "\<go*\|go"
> 
> Using vim that older than 970:
> 
> http://go-gyazo.appspot.com/a16424e8636121c6.png
> 
> Using vim that 970 or later:
> 
> http://go-gyazo.appspot.com/4296eca38c88953d.png

It works OK for me.  Remember that after doing :set re=1
you need to do "syn clear", because the compiled pattern
is cached.

Nevertheless, it's a bug in the new engine:

    echo matchlist('google', '\%#=1\<go*\|go')
    echo matchlist('google', '\%#=2\<go*\|go')

-- 
NEIL INNES PLAYED: THE FIRST SELF-DESTRUCTIVE MONK, ROBIN'S LEAST FAVORITE
                   MINSTREL, THE PAGE CRUSHED BY A RABBIT, THE OWNER OF A DUCK
                 "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/groups/opt_out.


Raspunde prin e-mail lui