-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
JSON highlighting doesn't look right #1099
Comments
Yeah, that definitely doesn't look right. And it looks like it hasn't been highlighting JSON properly since the 0.13 release. Specifically, the changes in the Packages submodule pulled in with 7ba5bc7 seem to be the culprit. As a side note, on a light terminal you might be better off using |
I normally use a dark terminal, these were taken with the vanilla MacOS terminal only to remove any possibility that something in my iterm config was the culprit. And even your 0.12.1 screenshot looks wrong: it's not highlighting anything under |
Thank you for reporting this! In order to prevent bugs like this in the future, I'd like to implement what I proposed here: #988 (comment) We should probably open a new ticket for that. |
Happy to help. You can count me in on the testing effort. I've been meaning to become more than barely-literate in Rust, and this seems like a good opportunity to expand. |
That sounds great! |
@flowchartsman I have opened #1124 to address this. Let's move the discussion to that ticket. |
Fixed in #1557 |
Except from |
Thanks for mentioning it, but it's to be expected. We have only patched Monokai, and none of the other color schemes/themes have been updated or patched to color JSON more nicely. |
What version of
bat
are you using?bat 0.15.4
Describe the bug you encountered:
Bat does not seem to highlight JSON files very well. Specifically, there's almost no highlighting at all, even though the screenshots would indicate it knows how to highlight keys differently to values in maps.
Describe what you expected to happen?
Something that looks more like the picture on #48
How did you install
bat
?homebrew
system
$ uname -srm
Darwin 18.7.0 x86_64
$ sw_vers
ProductName: Mac OS X
ProductVersion: 10.14.6
BuildVersion: 18G5033
bat
$ bat --version
bat 0.15.4
$ env
bat_config
bat_wrapper
No wrapper script for 'bat'.
bat_wrapper_function
No wrapper function for 'bat'.
No wrapper function for 'cat'.
tool
$ less --version
less 487 (POSIX regular expressions)
The text was updated successfully, but these errors were encountered: