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, [email protected] >> <[email protected]> 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: >>> ________________________________ >>> [email protected] >>> >> 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 .
Regards, Chip Campbell -- -- 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.
