Skip to content

JSON doesn't have separate string colors for keys and values in ansi theme #3403

@kellytrinh

Description

@kellytrinh

What steps will reproduce the bug?

  1. bat file.json -l json

What happens?

all strings are colored green
literals are colored yellow

because my json is mostly string KV with only a couple of boolean literals, I get a big wall of green text

What did you expect to happen instead?

key strings are colored blue. value strings are colored green.

How did you install bat?

Ubuntu 24.04
sudo apt install bat

bat version and environment

bat -V
bat 0.24.0

config file
--theme="ansi"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions