On Thu, Jul 21, 2016 at 3:46 PM, Charles E Campbell <
drc...@campbellfamily.biz> wrote:

> Ken Takata wrote:
> > Hi,
> >
> > 2016/7/20 Wed 13:41:57 UTC+9 Tony Mechelynck wrote:
> >> On Wed, Jul 20, 2016 at 4:55 AM, skywind3...@163.com
> >> <skywind3...@163.com> wrote:
> >>> Reproduce:
> >>> 1. vim abc.vim:
> >>> 2. add this line:
> >>> let my_dict = { "key1":"val1", "key2": "val2", "key3": "val3",
> "key4":"val4" }
> >>>
> >>> Issue:
> >>> highlight color is incorrect for my_dict,
> >>>
> >>> screen capture:
> >>> ________________________________
> >>> skywind3...@163.com
> >>>
> >> I can reproduce it. If I put one space after each colon, then all
> >> strings (keys and values both) get the Constant highlight (or whatever
> >> is linked to it); but not if there is no space after a colon, as in
> >> the first and last value in the screenshot.
> >>
> >> Adding Cc to Dr. Chip Campbell, who maintains the vim.vim syntax
> >> script. The version I'm using is 7.4-50 (May 02, 2016), as distributed
> >> with the current Vim (7.4.2080).
> >>
> >> Space or no space after a comma doesn't matter; but no space after a
> >> colon changes the highlight of both the value after the colon and the
> >> next following key. The syntax script seems to get out of sync,
> >> mistaking the closing quote, comma and opening quote for a "string"
> >> entity (as between val1 and key2 in the provided screenshot).
> >>
> >>
> >> Best regards,
> >> Tony.
> > There is a patch for this reported by mattn few months ago:
> > https://groups.google.com/d/topic/vim_dev/1D-wzFoi3Wo/discussion
> >
> I see no problem highlighting this with the latest syntax/vim.vim, which
> is on my website: http://www.drchip.org/astronaut/vim/index.htm#SYNTAX_SH
> .
>

I just tried the latest astro version, and I still see the bug.  The bug is
that the highlighting is different depending on whether there is a space
after the colons or not.

This bug has been around for a long time.  It's been fixed once or twice,
only to reappear in later editions.

-Manny

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui