Skip to content

JSON highlighting doesn't look right #1099

@flowchartsman

Description

@flowchartsman

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.
image

Describe what you expected to happen?
Something that looks more like the picture on #48
image

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)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions