[log syntax] Escaped quotes messes up colors inside of the json string. · Issue #2123 · sharkdp/bat (original) (raw)

Describe the bug you encountered:

Escaped quote breaks color of the json string

изображение

What did you expect to happen instead?

String should be one color.

How did you install bat?

Installed bat via homebrew.


bat version and environment

Software version

bat 0.20.0

Operating system

Linux 5.16.11-76051611-generic

Command-line

bat /home/zeta/.cache/helix/helix.log --diagnostic

Environment variables

SHELL=/bin/bash PAGER= LESS= LANG=ru_RU.UTF-8 LC_ALL= BAT_PAGER= BAT_CACHE_PATH= BAT_CONFIG_PATH= BAT_OPTS= BAT_STYLE= BAT_TABS= BAT_THEME= XDG_CONFIG_HOME= XDG_CACHE_HOME= COLORTERM=truecolor NO_COLOR= MANPAGER=

Config file

Could not read contents of '/home/zeta/.config/bat/config': No such file or directory (os error 2).

Compile time information

Less version

> less --version
less 551 (GNU regular expressions)
Copyright (C) 1984-2019  Mark Nudelman

less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Home page: http://www.greenwoodsoftware.com/less