kevinoid/vim-jsonc

Remove error for unquotes values?

Opened this issue · 2 comments

From https://github.com/komkom/jsonc:

Jsonc is a simplified json format which allows comments and unquoted values delimited by whitespace.

As it is vim-jsonc doesn't allow unquoted values. Any plans for allowing them?

How it currently looks like (red means error):

Screen Shot 2020-09-05 at 21 27 40

Thanks for opening this issue. I wasn't aware of that feature of komkom/jsonc.

I don't have any plans to support it at the moment (since I don't have a use for it personally), but I'm not opposed to the idea. Do you know of any popular software currently using that library/feature? At a minimum, I'll update README.md to clarify that it's not currently supported, and investigate the feasibility of supporting it when I have a chance to work on this package a bit.

Hey, thanks for the quick reply!

VTEX's newest development platform (VTEX IO) uses jsonc and supports unquoted values. Not sure if they use specifically komkom/jsonc, but the feature is definitely supported. I personally don't use unquoted values either but while reviewing/editing some files that use them it's kind of a minor annoyance to see them highlighted as errors.