-
Notifications
You must be signed in to change notification settings - Fork 111
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
Color strings differently than other value types #37
Comments
👍 This is the only thing keeping me from using concealment |
This took long enough but it's finally here! Since the beginning these different value types were being recognized and tagged appropriately in the syntax file, as |
FYI the commit is not on master, or has been reverted. I had to change the syntax file to change numbers and bools to Delimiter. |
As mentioned above, this change has been reverted. While updating the syntax file to set numbers and bools to For example, add something like this to highlight String ctermfg=green
highlight Number ctermfg=blue
highlight Boolean ctermfg=magenta Maybe it would be a good idea if a tip along these lines could be added to the documentation. |
@ctranstrum A better option is to add it in json.vim file highlight String ctermfg=green
highlight Number ctermfg=blue
highlight Boolean ctermfg=magenta
" Multiple folding recipes to not open in folded mode
" au BufRead * normal zR
" set foldlevel=99
setlocal foldmethod=syntax
set foldlevel=99
" etc |
Quick testing json:
Maybe useful too:
|
I think it should be |
See the following comment for why this way broken: elzr/vim-json#37 (comment)
I would like the ability to color values of type string differently than values of other types. This would make obvious which values are strings with concealment enabled.
For example, this is GitHub's JSON highlighting:
The text was updated successfully, but these errors were encountered: