vim-json icon indicating copy to clipboard operation
vim-json copied to clipboard

Missing warnings for certain missing comma errors

Open nkoester opened this issue 10 years ago • 0 comments

I noticed that not all missing commas within a .json file are recognised. The following MWE contains an error (missing comma) in the value of each keyword (except for keyword '0').

{
  "0": "c",

  "a": [ 
         ["1", "2"]
         ["3", "4"]
       ],

  "b": ["1", "2" "3"],

  "c": [1,2 3]

}

For me, only the value of keyword "b" is highlighted as an error. The other errors in "a" and "c" are not highlighted. I tested this with and without colorschemes. Unfortunately I'm not experienced that much with vim so can't really fix this myself.

Some meta:

Terminal: Termite (termite v10-5-g1ac9d1d) Vim: VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 2 2014 19:39:32) Included patches: 1-52

Cheers

Edit: Installed using pathogen. Tests done:

  • with and withouth other plugins,
  • clean vimrc, and
  • using xterm all the same issue

nkoester avatar Feb 16 '16 10:02 nkoester