Highlighting problem of regexp in Vim script

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Highlighting problem of regexp in Vim script

adah
I have this line in my Vim script:

  if v:lang =~? '^\(zh\)\|\(ja\)\|\(ko\)'

It seems to be highlighted differently in the new Vim 6.4.  The regexp
highlighting in HTML is now:

<font color="#ff00ff">'^</font><font color="#6a5acd">\(z</font><font
color="#ff00ff">h</font><font color="#6a5acd">\)</font><font
color="#6a5acd">\|\(j</font><font color="#ff00ff">a</font><font
color="#6a5acd">\)</font><font color="#6a5acd">\|\(k</font><font
color="#ff00ff">o</font><font color="#6a5acd">\)</font><font
color="#ff00ff">'</font>

I.e., the first letter and the second letter of "zh", "ja", and "ko" are
highlighted differently!

I believe someone changed a syntax file mistakenly ;-).  Suggestions?

Best regards,

Yongwei