Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing comma syntax error #18

Closed
acornejo opened this issue Oct 18, 2013 · 3 comments
Closed

missing comma syntax error #18

acornejo opened this issue Oct 18, 2013 · 3 comments

Comments

@acornejo
Copy link

A very common mistake when editing json files, is to forget to add a comma, or to add an extra one.

vim-json already detets extra commas, but it does not detect missing ones.

Here is a minimal example of an invalid json file which is not highlighted for errors by vim-json:

{
  "object1": "value1"
  "object2": "value2"
}
@FunTimeCoding
Copy link

Id like to see that one too.

@elzr
Copy link
Owner

elzr commented Apr 14, 2014

Hey guys, thanks for bringing this one up. It had been on the backburner for months because of some Vim weirdness (apparently concealing the quotes made me unable to reuse them in another syntax highlighting match). But today I finally hacked my way through! This common slip should now produce a syntax error :)

@elzr elzr closed this as completed Apr 14, 2014
@FunTimeCoding
Copy link

sweet =3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants