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

add option to colorize quotes #103

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

michaelPotter
Copy link

I'm not a huge fan of the quote concealing but I do appreciate how jq colors quotes to match their values to make the output less noisy.
This PR adds an option to colorize quotes. It defaults to off for compatibility, and works alongside syntax concealing.
Add set g:vim_json_color_quotes=1 to enable

else
syn region jsonString oneline matchgroup=jsonQuote start=/"/ skip=/\\\\\|\\"/ end=/"/ contains=jsonEscape contained
endif
execute 'syn region jsonString oneline matchgroup=' . string_quote_match_group . ' start=/"/ skip=/\\\\\|\\"/ end=/"/ contains=jsonEscape contained' . conceal
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of running different syn commands based on user options, we'll set some vars and build the desired syn command from those

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

Successfully merging this pull request may close these issues.

1 participant